Browse Source

Always provide a 'kicker' client.

When we moved to events, we stopped passing null in place of clients.
Instead, fake clients should be used. Apparently ProcessKick wasn't
properly updated.

Fixes issue #100
pull/101/head
Chris Smith 8 years ago
parent
commit
c0f6cf18e8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java

+ 2
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java View File

90
                 // callErrorInfo(new ParserError(ParserError.ERROR_WARNING, "Got kick for channel ("+token[2]+") for a non-existant user. [User: "+token[0]+"]", parser.getLastLine()));
90
                 // callErrorInfo(new ParserError(ParserError.ERROR_WARNING, "Got kick for channel ("+token[2]+") for a non-existant user. [User: "+token[0]+"]", parser.getLastLine()));
91
                 return;
91
                 return;
92
             }
92
             }
93
-            final IRCChannelClientInfo iChannelKicker = iChannel.getChannelClient(token[0]);
93
+            final IRCChannelClientInfo iChannelKicker = iChannel.getChannelClient(token[0], true);
94
             if (parser.getRemoveAfterCallback()) {
94
             if (parser.getRemoveAfterCallback()) {
95
                 callDebugInfo(IRCParser.DEBUG_INFO, "processKick: calling kick before. {%s | %s | %s | %s | %s}", iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
95
                 callDebugInfo(IRCParser.DEBUG_INFO, "processKick: calling kick before. {%s | %s | %s | %s | %s}", iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
96
                 callChannelKick(iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
96
                 callChannelKick(iChannel, iChannelClient, iChannelKicker, sReason, token[0]);
114
      *
114
      *
115
      * @param cChannel Channel where the kick took place
115
      * @param cChannel Channel where the kick took place
116
      * @param cKickedClient ChannelClient that got kicked
116
      * @param cKickedClient ChannelClient that got kicked
117
-     * @param cKickedByClient ChannelClient that did the kicking (may be null if server)
117
+     * @param cKickedByClient ChannelClient that did the kicking
118
      * @param sReason Reason for kick (may be "")
118
      * @param sReason Reason for kick (may be "")
119
      * @param sKickedByHost Hostname of Kicker (or servername)
119
      * @param sKickedByHost Hostname of Kicker (or servername)
120
      */
120
      */

Loading…
Cancel
Save