Fix the /topic command
This commit is contained in:
parent
338116a01e
commit
6c5ade3fe3
@ -1,11 +1,8 @@
|
||||
exports.commands = ["topic"];
|
||||
|
||||
exports.input = function(network, chan, cmd, args) {
|
||||
var msg = chan.name;
|
||||
msg += args[0] ? (" :" + args.join(" ")) : "";
|
||||
|
||||
var irc = network.irc;
|
||||
irc.raw("TOPIC", msg);
|
||||
irc.raw("TOPIC", chan.name, args.join(" "));
|
||||
|
||||
return true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user