mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
Fix the /topic command
This commit is contained in:
parent
338116a01e
commit
6c5ade3fe3
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue