Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 21.04.05 20:21 
Hi,
ich benutze die IRC - Komponente von Indy.

Nun möchte ich, dass der User in einen anderen Channel wechselt.

gut mit
ausblenden Delphi-Quelltext
1:
irc1.join('#channel2','passwort');					

kein problem.

doch wenn der User jetzt den anderen Channel betritt, dann ist er in 2 Channeln aktiv, nämlich in channel1 und channel2

Wenn er aber in den channel2 wechselt, soll er channel1 verlassen.

wie verlässt ein user den Channel, oder die verbindung zum Server zu trennen ?

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 21.04.05 20:25 
ausblenden Delphi-Quelltext
1:
irc1.part('#channel1','reason');					

;)

PS.: Wie hast du das Problem mit der User-List gelöst? Oder funktioniert das bei dir, dass du immer alle aktuell im Channel aktiven User anzeigen kannst?
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 21.04.05 20:33 
hi,
erstmal danke, das war das was ich gesucht habe :wink:

das mit den suern habe ich so geloöst:

timerinterval auf 5000 gestellt und
ausblenden Delphi-Quelltext
1:
listbox1.Items:=irc1.Channels.Items[0].Names;					

benutzt.

hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 21.04.05 21:23 
user profile iconhibbert hat folgendes geschrieben:
das mit den suern habe ich so geloöst:

timerinterval auf 5000 gestellt und
ausblenden Delphi-Quelltext
1:
listbox1.Items:=irc1.Channels.Items[0].Names;					

benutzt.

Bist du dir sicher, dass das geht? Probier's mal aus.. ;) Ich hatte es genauso, aber da hat sich irc1.Channels.Items[0].Names; überhaupt nicht mehr geändert... :nixweiss: Geh einfach nochmal in denselben Channel...
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 21.04.05 22:01 
also bei mir funktioniert es, jedenfalls in der BETA - Phases meines Proggs :roll:

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 22.04.05 14:21 
user profile iconhibbert hat folgendes geschrieben:
also bei mir funktioniert es, jedenfalls in der BETA - Phases meines Proggs :roll:

Gut. Danke. ;)

Werd das Projekt dann nochmal mit den Indy10 angehen. ;)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 22.04.05 17:05 
user profile iconWeBsPaCe hat folgendes geschrieben:
PS.: Wie hast du das Problem mit der User-List gelöst? Oder funktioniert das bei dir, dass du immer alle aktuell im Channel aktiven User anzeigen kannst?


nur so zum Spaß: ich würd das ganze in onJoin, onPart usw updaten :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 22.04.05 17:08 
Oh. Welch toller Einfall. Hab ich auch schon probiert. Ich weiß aber nicht, ob's jetzt funktioniert. Ich werd's mal demnächst ausprobieren.

^^nicht böse gemeint. Bin immer so. ;)

PS.: Wir sollten diesen Thread jetzt nicht damit zumüllen. Ich weiß, ich hab damit angefangen. Trotzdem. Ich mach nen neuen auf, wenn das Problem weiterhin besteht. ;)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 22.04.05 19:56 
user profile iconWeBsPaCe hat folgendes geschrieben:
Oh. Welch toller Einfall. Hab ich auch schon probiert.


Bei mir gings. :evil:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 22.04.05 20:38 
user profile iconStefanH hat folgendes geschrieben:
nur so zum Spaß: ich würd das ganze in onJoin, onPart usw updaten :roll:

Das :roll: da hinten gefällt mir nicht! Deshalb:

user profile iconWeBsPaCe hat folgendes geschrieben:
Oh. Welch toller Einfall. Hab ich auch schon probiert. Ich weiß aber nicht, ob's jetzt funktioniert. Ich werd's mal demnächst ausprobieren.

^^nicht böse gemeint. Bin immer so. ;)


Ich hab da oben mal markiert, was wichtig ist, falls du keine Zeit hast das ganz zu lesen. Weil dann hättest du das auch gelesen:

user profile iconWeBsPaCe hat folgendes geschrieben:
..., aber da hat sich irc1.Channels.Items[0].Names; überhaupt nicht mehr geändert... :nixweiss:


Und da ich es nicht einsehe, hier irgendwelchen Leute hinterzulaufen und mir solche Sachen anhören muss, ist das hier mein letzter Post in diesem Thread. Denn das hätte man auch anders schreiben können:

user profile iconStefanH hat folgendes geschrieben:
Bei mir gings. :evil:


So z.B.:

user profile iconStefanH hat folgendes geschrieben:
Bei mir gings. ;)