+ if(type) {
+ hilight = qwebirc.ui.HILIGHT_ACTIVITY;
+
+ if(type.match(/(NOTICE|ACTION|MSG)$/)) {
+ if(this.type == qwebirc.ui.WINDOW_QUERY || this.type == qwebirc.ui.WINDOW_MESSAGES) {
+ if(type.match(/^OUR/) || type.match(/NOTICE$/)) {
+ hilight = qwebirc.ui.HILIGHT_ACTIVITY;
+ } else {
+ hilight = qwebirc.ui.HILIGHT_US;
+ this.parentObject.beep();
+ }
+ }
+ if(!type.match(/^OUR/) && this.client.hilightController.match(line["m"])) {
+ lhilight = true;
+ hilight = qwebirc.ui.HILIGHT_US;
+ this.parentObject.beep();
+ } else if(hilight != qwebirc.ui.HILIGHT_US) {
+ hilight = qwebirc.ui.HILIGHT_SPEECH;
+ }
+ }
+ }
+
+ if(!this.active && (hilight != qwebirc.ui.HILIGHT_NONE))
+ this.setHilighted(hilight);
+
+ if(type)
+ line = this.parentObject.theme.message(type, line, lhilight);