[ircd-ratbox] ratbox-services: A fix for SVC_INFO_SUSPENDEDADMIN

Narf narf at bofh.bg
Thu Feb 25 04:53:19 EST 2010


Hello,
I've noticed that userserv doesn't show properly suspend expiry time  
and reasons, e.g.:

[username] Suspended by services admin (expires : )neverreason

I'm attaching a patch to fix that.

Andrey Andreev a.k.a. Narf.
-------------- next part --------------
diff -Naur ratbox-services-1.2.3.orig/langs/bg.lang ratbox-services-1.2.3/langs/bg.lang
--- ratbox-services-1.2.3.orig/langs/bg.lang	2010-02-25 11:34:13.883552581 +0200
+++ ratbox-services-1.2.3/langs/bg.lang	2010-02-25 11:37:20.662734469 +0200
@@ -106,7 +106,7 @@
 SVC_INFO_REGDURATIONCHAN,	"[%s] Канал регистриран от %s от %s"
 SVC_INFO_REGDURATIONNICK,	"[%s] Псевдоним регистриран от %s от %s"
 SVC_INFO_SUSPENDED,		"[%s] Забранен от %s (продължителност до %s) %s"
-SVC_INFO_SUSPENDEDADMIN,	"[%s] Забранен от администратор (продължителност %s)%s%s"
+SVC_INFO_SUSPENDEDADMIN,	"[%s] Забранен от администратор (продължителност%s%s) %s"
 SVC_INFO_ACCESSLIST,		"[%s] Достъп до: %s"
 SVC_INFO_NICKNAMES,		"[%s] Регистрирани псевдоними: %s"
 SVC_INFO_EMAIL,			"[%s] Имейл адрес: %s"
diff -Naur ratbox-services-1.2.3.orig/src/messages.c ratbox-services-1.2.3/src/messages.c
--- ratbox-services-1.2.3.orig/src/messages.c	2010-02-25 11:34:13.990736513 +0200
+++ ratbox-services-1.2.3/src/messages.c	2010-02-25 11:37:02.314735422 +0200
@@ -132,7 +132,7 @@
 	{ SVC_INFO_REGDURATIONCHAN,	"[%s] Channel registered to %s for %s"			},
 	{ SVC_INFO_REGDURATIONNICK,	"[%s] Nickname registered to %s for %s"			},
 	{ SVC_INFO_SUSPENDED,		"[%s] Suspended by %s (expires %s): %s"			},
-	{ SVC_INFO_SUSPENDEDADMIN,	"[%s] Suspended by services admin (expires %s)%s%s"	},
+	{ SVC_INFO_SUSPENDEDADMIN,	"[%s] Suspended by services admin (expires%s%s) %s"	},
 	{ SVC_INFO_ACCESSLIST,		"[%s] Access list: %s"					},
 	{ SVC_INFO_NICKNAMES,		"[%s] Registered nicknames: %s"				},
 	{ SVC_INFO_EMAIL,		"[%s] Email: %s"					},


More information about the ircd-ratbox mailing list