]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/theme.js
another silly QHash bug
[irc/quakenet/qwebirc.git] / js / ui / theme.js
index bd0b2a8db39804c8384b996fb6b80c2b195c46e8..78c43d630fe071f760513e2b1c4ddb1e15af4fc3 100644 (file)
@@ -3,6 +3,8 @@ qwebirc.ui.themes.ThemeControlCodeMap = {
   "B": "\x02",
   "U": "\x1F",
   "O": "\x0F",
+  "{": "\x00",
+  "}": "\x00",
   "[": "qwebirc://whois/",
   "]": "/",
   "$": "$"
@@ -11,36 +13,38 @@ qwebirc.ui.themes.ThemeControlCodeMap = {
 qwebirc.ui.themes.Default = {
   "PREFIX": ["$C4==$O "],
   "SIGNON": ["Signed on!", true],
-  "CONNECT": ["Connected to server.", true],
+  "CONNECTING": ["Connecting to server, please wait...", true],
+  "CONNECT": ["Logging in, please wait...", true],
+  "CONNECTED": ["Connected and logged in -- ready to go!", true],
   "RAW": ["$m", true],
   "DISCONNECT": ["Disconnected from server: $m", true],
   "ERROR": ["ERROR: $m", true],
   "SERVERNOTICE": ["$m", true],
-  "JOIN": ["$N [$h] has joined $c", true],
-  "OURJOIN": ["$N [$h] has joined $c", true],
-  "PART": ["$N [$h] has left $c [$m]", true],
-  "KICK": ["$v was kicked from $c by $N [$m]", true],
-  "MODE": ["mode/$c [$m] by $N", true],
-  "QUIT": ["$N [$h] has quit [$m]", true],
-  "NICK": ["$n has changed nick to $[$w$]", true],
-  "TOPIC": ["$N changed the topic of $c to: $m", true],
+  "JOIN": ["${$N$} [$h] has joined $c", true],
+  "OURJOIN": ["${$N$} [$h] has joined $c", true],
+  "PART": ["${$N$} [$h] has left $c [$m]", true],
+  "KICK": ["${$v$} was kicked from $c by ${$N$} [$m]", true],
+  "MODE": ["mode/$c [$m] by ${$N$}", true],
+  "QUIT": ["${$N$} [$h] has quit [$m]", true],
+  "NICK": ["${$n$} has changed nick to ${$[$w$]$}", true],
+  "TOPIC": ["${$N$} changed the topic of $c to: $m", true],
   "UMODE": ["Usermode change: $m", true],
   "INVITE": ["$N invites you to join $c", true],
   "HILIGHT": ["$C4"],
   "HILIGHTEND": ["$O"],
-  "CHANMSG": ["<$@$($N$)> $m"],
+  "CHANMSG": ["<${$@$($N$)$}> $m"],
   "PRIVMSG": ["<$($N$)> $m"],
-  "CHANNOTICE": ["-$($N$):$c- $m"],
+  "CHANNOTICE": ["-${$($N$)$}:$c- $m"],
   "PRIVNOTICE": ["-$($N$)- $m"],
-  "OURCHANMSG": ["<$B$@$N$B> $m"],
-  "OURPRIVMSG": ["<$B$N$B> $m"],
+  "OURCHANMSG": ["<$@$N> $m"],
+  "OURPRIVMSG": ["<$N> $m"],
   "OURTARGETEDMSG": ["*$[$t$]* $m"],
   "OURTARGETEDNOTICE": ["[notice($[$t$])] $m"],
   "OURCHANNOTICE": ["-$N:$t- $m"],
   "OURPRIVNOTICE": ["-$N- $m"],
   "OURCHANACTION": [" * $N $m"],
   "OURPRIVACTION": [" * $N $m"],
-  "CHANACTION": [" * $($N$) $m"],
+  "CHANACTION": [" * ${$($N$)$} $m"],
   "PRIVACTION": [" * $($N$) $m"],
   "CHANCTCP": ["$N [$h] requested CTCP $x from $c: $m"],
   "PRIVCTCP": ["$N [$h] requested CTCP $x from $-: $m"],
@@ -65,7 +69,13 @@ qwebirc.ui.themes.Default = {
   "GENERICMESSAGE": ["$m", true],
   "WALLOPS": ["WALLOP $n: $t", true],
   "CHANNELCREATIONTIME": ["Channel $c was created at: $m", true],
-  "CHANNELMODEIS": ["Channel modes on $c are: $m", true]
+  "CHANNELMODEIS": ["Channel modes on $c are: $m", true],
+  "IGNORED": ["Ignored $n, to unignore type: /UNIGNORE $n", false],
+  "UNIGNORED": ["Unignored $n.", false],
+  "IGNOREHEADER": ["Ignore list:", false],
+  "IGNOREENTRY": ["- $h", false],
+  "IGNOREEMPTY": ["Ignore list is empty.", false],
+  "SILENCE": ["Silenced: $h", false]
 };
 
 qwebirc.ui.Theme = new Class({
@@ -91,11 +101,9 @@ qwebirc.ui.Theme = new Class({
     this.__ccmap = qwebirc.util.dictCopy(qwebirc.ui.themes.ThemeControlCodeMap);
     this.__ccmaph = qwebirc.util.dictCopy(this.__ccmap);
 
-    this.__ccmap["("] = "";
-    this.__ccmap[")"] = "";
-    
     this.__ccmaph["("] = this.message("HILIGHT", {}, this.__ccmap);
     this.__ccmaph[")"] = this.message("HILIGHTEND", {}, this.__ccmap);
+    this.__ccmaph["{"] = this.__ccmaph["}"] = "";
   },
   __dollarSubstitute: function(x, h, mapper) {
     var msg = [];