Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Сети > IdIRC


Автор: Rondo 31.1.2007, 22:11
Скажите как можно получить список людей которые находятся в IRC канале при помощи IdIRC

Автор: Snowy 1.2.2007, 15:00
А что у тебя со справкой?
TIdIRC.ListChannelNicknames, OnNicknamesListReceived

Автор: Rondo 1.2.2007, 23:51
У меня нет такого ивента OnNicknamesListReceived  smile И этого метода. Весь форум обшарил почти ничего по IRC не нашел.. Indy9

Автор: Snowy 2.2.2007, 11:44
Ну тогда OnNames

Автор: Rondo 2.2.2007, 15:02
Спасибо Snowy, разобрался.

Автор: Rondo 2.2.2007, 22:32
Snowy, С получением списка я разобрался. 

Код

lstIRCNames.Items := AChannel.Names;


А как можно его обновлять? Например когда кто-то входит в канал или выходит? Список остается тот же самый что и при подключении на канал, ну это понятно,  само собой ни что не меняется. Какой ивент перехватывает это событие? С инглишлм вроде как дружу.. на блин, там ни че нет такого...

Автор: Snowy 2.2.2007, 23:46
OnJoin                A user joined a channel.
    OnKick                A user kicked another user from a channel.
    OnNickChange          A user changed their nick.
    OnAway                Received an away message for a user.

Добавлено @ 23:47 
И вообще. Полный список событий:
Цитата
    OnConnect             Connected to the IRC network.
    OnDisconnect          Disconnected from the IRC network.
    OnChannelMessage      Received a channel message.
    OnChannelNotice       Received a channel notice.
    OnChannelAction       Received a channel action.
    OnPrivateMessage      Received a private message.
    OnPrivateNotice       Received a private notice.
    OnPrivateAction       Received a private action.
    OnJoin                A user joined a channel.
    OnJoined              You joined a channel.
    OnPart                A user parted a channel.
    OnParted              You parted a channel.
    OnKick                A user kicked another user from a channel.
    OnKicked              You were kicked from a channel by a user.
    OnNickChange          A user changed their nick.
    OnNickChanged         Your nick was changed.
    OnTopic               The topic of the channel was changed.
    OnQuit                A user quit IRC.
    OnNames               Received a list of names of people in a channel.
    OnInvite              A user has invited you to a channel.
    OnInviting            You invited a user to a channel.
    OnPingPong            Received a server ping (PONG response sent
                          automatically).
    OnError               Error message from server.
    OnAway                Received an away message for a user.
    OnNowAway             You are marked as being away.
    OnUnAway              You are no longer marked as being away.
    OnWallops             Received a wallops message.
    OnSystem              Any response from the server not handled by a
                          specific event handler.
    OnRaw                 Every command from the IRC server goes through this
                          handler first.  Normal processing can be suppressed
                          by setting the Suppress parameter to True.
    OnOp                  A user was oped in a channel.
    OnDeop                A user was deoped in a channel.
    OnBan                 A user was banned in a channel.
    OnUnban               A user was unbanned in a channel.
    OnVoice               A user was given a voice in a channel.
    OnDevoice             A user's voice was taken away in a channel.
    OnChannelMode         The channel mode was changed.
    OnChannelModeChanged  Called after the channel mode change has been parsed
                          and the mode was changed.
    OnUserMode            Your user mode was changed.
    OnUserModeChanged     Called after the user mode change has been parsed
                          and the mode was changed.
    OnKill                A user was killed.
    OnUnknownCommand      An unknown command was received from the server.
    OnStateChange         Called when the current state of the IRC connection
                          changes.
    OnSend                Called for every command sent to the IRC server.
                          Useful for displaying in a raw output window.
    OnReceive             Called for every command is received from the IRC
                          server.  Useful for displaying in a raw output
                          window.
    OnNicksInUse          Called during the registration process when both Nick
                          and AltNick are in use.
    OnSocketError         An error occurred in the TCP/IP socket.
    OnNoTopic             There is no topic for this channel.
    OnChannelMode         The channel mode is now set.
    OnLinks               Results from a /LINK command
    OnList                Results from a /LIST command

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)