|
@@ -1117,7 +1117,10 @@ func timeHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
1117
|
1117
|
// KILL <nickname> <comment>
|
1118
|
1118
|
func killHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
1119
|
1119
|
nickname := msg.Params[0]
|
1120
|
|
- comment := msg.Params[1]
|
|
1120
|
+ comment := "<no reason supplied>"
|
|
1121
|
+ if len(msg.Params) > 1 {
|
|
1122
|
+ comment = msg.Params[1]
|
|
1123
|
+ }
|
1121
|
1124
|
|
1122
|
1125
|
target := server.clients.Get(Name(nickname))
|
1123
|
1126
|
if target == nil {
|