this.send("PART " + c + " :" + (args?args[0]:"rejoining. . ."));
this.send("JOIN " + c);
}],
+ cmd_JOIN: [false, 2, 1, function(args) {
+ var channels = args.shift();
+
+ var schans = channels.split(",");
+ var fchans = [];
+
+ var warn = false;
+
+ schans.forEach(function(x) {
+ if(!this.parentObject.isChannel(x)) {
+ x = "#" + x;
+ warn = true;
+ }
+ fchans.push(x);
+ }.bind(this));
+
+ if(warn)
+ this.getActiveWindow().infoMessage("Channel names begin with # (corrected automatically).");
+
+ this.send("JOIN " + fchans.join(",") + " " + args.join(" "));
+ }],
cmd_UMODE: [false, 1, 0, function(args) {
this.send("MODE " + this.parentObject.getNickname() + (args?(" " + args[0]):""));
}],
this.newServerLine("SIGNON");
if(this.options.autojoin)
- this.send("JOIN " + this.options.autojoin);
+ this.commandparser.dispatch("/JOIN " + this.options.autojoin);
},
userJoined: function(user, channel) {
var nick = user.hostToNick();
errorMessage: function(message) {
this.addLine("", message, "red");
},
+ infoMessage: function(message) {
+ this.addLine("", message, " #87CEFA");
+ },
setHilighted: function(state) {
if(state == qwebirc.ui.HILIGHT_NONE || state >= this.hilighted)
this.hilighted = state;