[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

centericq



кто centericq использует? потестите плиз два патча:

первый:

=начало
diff -rNu src/icqface.cc src/icqface.cc
--- src/icqface.cc   2005-02-15 00:40:04.000000000 +0300
+++ src/icqface.cc    2007-06-18 15:55:49.000000000 +0400
@@ -2529,6 +2529,7 @@
     }

     c->sethistoffset(count);
+        if (chatlastread == 0) chatlastread = 1;

     count = 0;
     events = em.getevents(passinfo, chatlastread);
=конец

исправляет вход в диалоги с длинными логами (особо актуально для irc)

второй:

=начало
diff -rNu src/hooks/irchook.cc src/hooks/irchook.cc
--- src/hooks/irchook.cc	2004-12-20 03:54:02.000000000 +0300
+++ src/hooks/irchook.cc	2007-06-18 16:30:09.000000000 +0400
@@ -1395,6 +1395,7 @@
 
     if(conf.getourid(irc).nickname != who) {
 	string text;
+	string text2;
 	char buf[512];
 
 	sprintf(buf, _("%s has left"), who); text = buf;
@@ -1402,7 +1403,8 @@
 	if(reason)
 	if(strlen(reason)) {
 	    if(strlen(reason) > 450) reason[450] = 0;
-	    sprintf(buf, _("reason: %s"), reason);
+    	    text2 = irhook.rushtmlconv( "wk", reason );
+	    sprintf(buf, _("reason: %s"), text2.c_str() );
 	    text += (string) "; " + buf + ".";
 	}
 
@@ -1452,7 +1454,8 @@
 
     string text;
     char buf[1024];
-    sprintf(buf, _("Channel topic now is: %s"), topic);
+    text = irhook.rushtmlconv( "wk", topic );
+    sprintf(buf, _("Channel topic now is: %s"), text.c_str());
     text = buf;
 
     if(author)
=конец

исправляет глюки в irc с русскими кодировками топика и сообщения выхода
юзера.

патчи на Debian'овский пакет вполне накладываются
по кр мере на 4.21.0-19



Reply to: