\r\n are quoted in messages sent.
FEAT: block backspace\r
TIDY: [enter] in text box should trigger event instead of having a form there?\r
FEAT: about DIALOG?\r
FEAT: block backspace\r
TIDY: [enter] in text box should trigger event instead of having a form there?\r
FEAT: about DIALOG?\r
- FEAT: Save last nick in cookies.\r
+ FEAT: Save last nick/chans in cookies.\r
FEAT: multiline pastes\r
FEAT: link motd and embedded wizard somewhere more obvious.\r
FEAT: Last position line\r
FEAT: multiline pastes\r
FEAT: link motd and embedded wizard somewhere more obvious.\r
FEAT: Last position line\r
\r
Options pane:\r
FEAT: Store options server side when logged in.\r
\r
Options pane:\r
FEAT: Store options server side when logged in.\r
+ FEAT: Add option to redirect notices to message window.\r
\r
Other:\r
BUG: IE7 seems to be broke\r
\r
Other:\r
BUG: IE7 seems to be broke\r
- BUG: check to see if newlines are passed through (or \r).\r
-
\ No newline at end of file
var target = params[0];
var message = params.indexFromEnd(-1);
var target = params[0];
var message = params.indexFromEnd(-1);
- if(user == "") {
- this.serverNotice(message);
+ if((user == "") || (user.indexOf("!") == -1)) {
+ this.serverNotice(user, message);
} else if(target == this.nickname) {
var ctcp = this.processCTCP(message);
if(ctcp) {
} else if(target == this.nickname) {
var ctcp = this.processCTCP(message);
if(ctcp) {
getQueryWindow: function(name) {
return this.ui.getWindow(this, qwebirc.ui.WINDOW_QUERY, name);
},
getQueryWindow: function(name) {
return this.ui.getWindow(this, qwebirc.ui.WINDOW_QUERY, name);
},
- newQueryWindow: function(name) {
- if(this.ui.uiOptions.DEDICATED_MSG_WINDOW && !this.ui.getWindow(this, qwebirc.ui.WINDOW_MESSAGES) && !this.getQueryWindow(name))
+ newQueryWindow: function(name, privmsg) {
+ var e;
+ if(privmsg) {
+ e = this.ui.uiOptions.DEDICATED_MSG_WINDOW;
+ } else {
+ e = this.ui.uiOptions.DEDICATED_NOTICE_WINDOW;
+ }
+ if(e && !this.ui.getWindow(this, qwebirc.ui.WINDOW_MESSAGES) && !this.getQueryWindow(name))
return this.ui.newWindow(this, qwebirc.ui.WINDOW_MESSAGES, "Messages");
return this.ui.newWindow(this, qwebirc.ui.WINDOW_MESSAGES, "Messages");
- return this.newWindow(name, qwebirc.ui.WINDOW_QUERY, false);
+
+ if(privmsg)
+ return this.newWindow(name, qwebirc.ui.WINDOW_QUERY, false);
- newQueryLine: function(window, type, data, active) {
+ newQueryLine: function(window, type, data, privmsg, active) {
if(this.getQueryWindow(window))
return this.newLine(window, type, data);
var w = this.ui.getWindow(this, qwebirc.ui.WINDOW_MESSAGES);
if(this.getQueryWindow(window))
return this.newLine(window, type, data);
var w = this.ui.getWindow(this, qwebirc.ui.WINDOW_MESSAGES);
- if(this.ui.uiOptions.DEDICATED_MSG_WINDOW && w) {
+ var e;
+ if(privmsg) {
+ e = this.ui.uiOptions.DEDICATED_MSG_WINDOW;
+ } else {
+ e = this.ui.uiOptions.DEDICATED_NOTICE_WINDOW;
+ }
+ if(e && w) {
return w.addLine(type, data);
} else {
if(active) {
return w.addLine(type, data);
} else {
if(active) {
- newQueryOrActiveLine: function(window, type, data) {
- this.newQueryLine(window, type, data, true);
+ newQueryOrActiveLine: function(window, type, data, privmsg) {
+ this.newQueryLine(window, type, data, privmsg, true);
},
getActiveWindow: function() {
return this.ui.getActiveIRCWindow(this);
},
getActiveWindow: function() {
return this.ui.getActiveIRCWindow(this);
args = "";
if(type == "ACTION") {
args = "";
if(type == "ACTION") {
- this.newQueryWindow(nick);
- this.newQueryLine(nick, "PRIVACTION", {"m": args, "x": type, "h": host, "n": nick});
+ this.newQueryWindow(nick, true);
+ this.newQueryLine(nick, "PRIVACTION", {"m": args, "x": type, "h": host, "n": nick}, true);
var nick = user.hostToNick();
var host = user.hostToHost();
var nick = user.hostToNick();
var host = user.hostToHost();
- this.newQueryWindow(nick);
+ this.newQueryWindow(nick, true);
- this.newQueryLine(nick, "PRIVMSG", {"m": message, "h": host, "n": nick});
+ this.newQueryLine(nick, "PRIVMSG", {"m": message, "h": host, "n": nick}, true);
- serverNotice: function(message) {
- this.newServerLine("SERVERNOTICE", {"m": message});
+ serverNotice: function(user, message) {
+ if(user == "") {
+ this.newServerLine("SERVERNOTICE", {"m": message});
+ } else {
+ this.newServerLine("PRIVNOTICE", {"m": message, "n": user});
+ }
},
userNotice: function(user, message) {
var nick = user.hostToNick();
var host = user.hostToHost();
},
userNotice: function(user, message) {
var nick = user.hostToNick();
var host = user.hostToHost();
- this.newTargetOrActiveLine(nick, "PRIVNOTICE", {"m": message, "h": host, "n": nick});
+ if(this.ui.uiOptions.DEDICATED_NOTICE_WINDOW) {
+ this.newQueryWindow(nick, false);
+ this.newQueryOrActiveLine(nick, "PRIVNOTICE", {"m": message, "h": host, "n": nick}, false);
+ } else {
+ this.newTargetOrActiveLine(nick, "PRIVNOTICE", {"m": message, "h": host, "n": nick});
+ }
},
userInvite: function(user, channel) {
var nick = user.hostToNick();
},
userInvite: function(user, channel) {
var nick = user.hostToNick();
this.disconnect();
},
awayMessage: function(nick, message) {
this.disconnect();
},
awayMessage: function(nick, message) {
- this.newQueryLine(nick, "AWAY", {"n": nick, "m": message});
+ this.newQueryLine(nick, "AWAY", {"n": nick, "m": message}, true);
},
whois: function(nick, type, data) {
var ndata = {"n": nick};
},
whois: function(nick, type, data) {
var ndata = {"n": nick};
this.newTargetOrActiveLine(target, "GENERICERROR", {m: message, t: target});
},
genericQueryError: function(target, message) {
this.newTargetOrActiveLine(target, "GENERICERROR", {m: message, t: target});
},
genericQueryError: function(target, message) {
- this.newQueryOrActiveLine(target, "GENERICERROR", {m: message, t: target});
+ this.newQueryOrActiveLine(target, "GENERICERROR", {m: message, t: target}, true);
},
awayStatus: function(state, message) {
this.newActiveLine("GENERICMESSAGE", {m: message});
},
awayStatus: function(state, message) {
this.newActiveLine("GENERICMESSAGE", {m: message});
if(type.match(/(NOTICE|ACTION|MSG)$/)) {
if(this.type == qwebirc.ui.WINDOW_QUERY || this.type == qwebirc.ui.WINDOW_MESSAGES) {
if(type.match(/(NOTICE|ACTION|MSG)$/)) {
if(this.type == qwebirc.ui.WINDOW_QUERY || this.type == qwebirc.ui.WINDOW_MESSAGES) {
- if(type.match(/^OUR/)) {
+ if(type.match(/^OUR/) || type.match(/NOTICE$/)) {
hilight = qwebirc.ui.HILIGHT_ACTIVITY;
} else {
hilight = qwebirc.ui.HILIGHT_US;
hilight = qwebirc.ui.HILIGHT_ACTIVITY;
} else {
hilight = qwebirc.ui.HILIGHT_US;
ui.setBeepOnMention(value);
}
}],
ui.setBeepOnMention(value);
}
}],
- [2, "DEDICATED_MSG_WINDOW", "Use dedicated messages window", false],
+ [2, "DEDICATED_MSG_WINDOW", "Send privmsgs to dedicated messages window", false],
+ [4, "DEDICATED_NOTICE_WINDOW", "Send notices to dedicated message window", false],
[3, "NICK_OV_STATUS", "Show status (@/+) before nicknames", true]
];
[3, "NICK_OV_STATUS", "Show status (@/+) before nicknames", true]
];