this.automode("-", "v", args);
}],
cmd_TOPIC: [true, 1, 1, function(args) {
this.automode("-", "v", args);
}],
cmd_TOPIC: [true, 1, 1, function(args) {
- this.send("TOPIC " + this.getActiveWindow().name + " :" + args[0]);
+ var w = this.getActiveWindow();
+ if(w.client.isChannel(args[0])) {
+ this.send("TOPIC " + args[0]);
+ } else {
+ this.send("TOPIC " + w.name + " :" + args[0]);
+ }
}],
cmd_AWAY: [false, 1, 0, function(args) {
this.send("AWAY :" + (args?args[0]:""));
}],
cmd_AWAY: [false, 1, 0, function(args) {
this.send("AWAY :" + (args?args[0]:""));