this.awayMessage(nick, text);
return true;
+ },
+ irc_RPL_NOWAWAY: function(prefix, params) {
+ this.awayStatus(true, params.indexFromEnd(-1));
+ },
+ irc_RPL_UNAWAY: function(prefix, params) {
+ this.awayStatus(false, params.indexFromEnd(-1));
}
});
"J": "JOIN",
"K": "KICK",
"MSG": "PRIVMSG",
- "Q": "QUERY"
+ "Q": "QUERY",
+ "BACK": "AWAY",
+ "HOP": "CYCLE"
};
this.send = parentObject.send;
cmd_DEVOICE: [true, 6, 1, function(args) {
this.automode("-", "v", args);
}],
+ cmd_TOPIC: [true, 1, 1, function(args) {
+ this.send("TOPIC " + this.parentObject.getActiveWindow().name + " :" + args[0]);
+ }],
+ cmd_AWAY: [false, 1, 0, function(args) {
+ this.send("AWAY :" + (args?args[0]:""));
+ }],
+ cmd_CYCLE: [true, 1, 0, function(args) {
+ var c = this.parentObject.getActiveWindow().name;
+
+ this.send("PART " + c + " :" + (args?args[0]:"rejoining. . ."));
+ this.send("JOIN " + c);
+ }],
cmd_PART: [false, 2, 0, function(args) {
var w = this.parentObject.getActiveWindow();
var message = "";
},
genericerror: function(target, message) {
this.newTargetOrActiveLine(target, "GENERICERROR", {m: message, t: target});
+ },
+ awayStatus: function(state, message) {
+ this.newActiveLine("GENERICMESSAGE", {m: message});
}
});
"301": "RPL_AWAY",
"401": "ERR_NOSUCHNICK",
"404": "ERR_CANNOTSENDTOCHAN",
- "482": "ERR_CHANOPPRIVSNEEDED"
+ "482": "ERR_CHANOPPRIVSNEEDED",
+ "305": "RPL_UNAWAY",
+ "306": "RPL_NOWAWAY"
};
"WHOISACTUALLY": [" realhost : $m [ip: $x]", true],
"WHOISEND": ["End of WHOIS", true],
"AWAY": ["$n is away: $m", true],
- "GENERICERROR": ["$m: $t", true]
+ "GENERICERROR": ["$m: $t", true],
+ "GENERICMESSAGE": ["$m", true],
};
qwebirc.ui.Theme = new Class({