Переглянути джерело

* Now using ANSI color code *0* to close bold (as opposed to new standard: 22)

svn: 1991
Bryan Drewery 21 роки тому
батько
коміт
ca53255b97
2 змінених файлів з 3 додано та 1 видалено
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/misc.c

+ 1 - 0
doc/UPDATES

@@ -68,6 +68,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Fixed a bug which caused a leaf to not request ops in a channel after adding it's new host to the userfile.
 * Fixed a bug which caused a leaf to not request ops in a channel after adding it's new host to the userfile.
 * Fixed bots unbanning bots via botnet requests when the bot is set +k for the chan.
 * Fixed bots unbanning bots via botnet requests when the bot is set +k for the chan.
 * Fixed a bunch of lame bugs in the getop system
 * Fixed a bunch of lame bugs in the getop system
+* Now using ANSI color code *0* to close bold (as opposed to new standard: 22)
 
 
 1.2.2
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 2 - 1
src/misc.c

@@ -989,7 +989,8 @@ color(int idx, int type, int which)
   if (type == BOLD_OPEN) {
   if (type == BOLD_OPEN) {
     return ansi ? "\033[1m" : "\002";
     return ansi ? "\033[1m" : "\002";
   } else if (type == BOLD_CLOSE) {
   } else if (type == BOLD_CLOSE) {
-    return ansi ? "\033[22m" : "\002";
+//    return ansi ? "\033[22m" : "\002";
+    return ansi ? "\033[0m" : "\002";
   } else if (type == UNDERLINE_OPEN) {
   } else if (type == UNDERLINE_OPEN) {
     return ansi ? "\033[4m" : "\037";
     return ansi ? "\033[4m" : "\037";
   } else if (type == UNDERLINE_CLOSE) {
   } else if (type == UNDERLINE_CLOSE) {