Пример #1
0
    private void QuitEventHandler(IRCEvent e)
    {
        IRCQuitEvent quitEvent = (IRCQuitEvent)e;
        string       nick      = quitEvent.User.Nick;

        PostOtherPlayerLeftGameChannel(nick);
        LogText("[" + nick + " quit] " + quitEvent.Message);
        OutputText("[" + nick + " quit] " + quitEvent.Message);
    }
    private void OnIRCQuit(string[] tokens, string message)
    {
        IRCQuitEvent quit = new IRCQuitEvent();

        quit.User    = IRCUser.GetUserFromAddress(tokens[0].Substring(1));
        quit.Message = message;

        DispatchEvent(quit);
    }
Пример #3
0
    private void OnIRCQuit(string[] tokens, string message)
    {
        IRCQuitEvent quit = new IRCQuitEvent();

        quit.User = IRCUser.GetUserFromAddress(tokens[0].Substring(1));
        quit.Message = message;

        DispatchEvent(quit);
    }