فهرست منبع

* Port [3714] to 1.2.15
* Show kline reasons on connect to servers. (Fixes #400)



svn: 3715

Bryan Drewery 18 سال پیش
والد
کامیت
c384d0762c
2فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 1 0
      doc/UPDATES
  2. 13 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -22,6 +22,7 @@
 * Fix some cases where the bot would pointlessly do WHO on users instead of on the channel to resolve a desync.
 * Fix the bot not starting up when it is not allowed to run ptrace() (FreeBSD: security.bsd.unprivileged_proc_debug=0)
 * Misc help cleanups
+* Show kline reasons on connect to servers. (Fixes #400)
 
 1.2.14 - http://wraith.botpack.net/milestone/1.2.14
 * Fix another bug in shell functions. (fixes #321)

+ 13 - 0
src/mod/server.mod/servmsg.c

@@ -1399,6 +1399,18 @@ static int got406(char *from, char *msg)
   return 0;
 }
 
+/* 465 info_ :You are banned from this server- Temporary K-line 1 min. - Testing kline notices (2008/4/3 09.51) */
+static int got465(char *from, char *msg)
+{
+  newsplit(&msg); /* 465 */
+  newsplit(&msg); /* nick */
+  fixcolon(msg);
+  putlog(LOG_SERV, "*", "I am klined: %s", msg);
+  putlog(LOG_SERV, "*", "Disconnecting from server.");
+  nuke_server("I am klined!");
+  return 1;                                           
+}
+
 /* 718 $me nick user@host :msg 
  * for receiving a msg while +g
  */
@@ -1448,6 +1460,7 @@ static cmd_t my_raw_binds[] =
   {"317",	"",	(Function) got317,		NULL, LEAF},	/* idle, signon :idle-eng, signon-eng */
   {"401",	"",	(Function) got401,		NULL, LEAF},
   {"406",	"",	(Function) got406,		NULL, LEAF},
+  {"465",	"",	(Function) got465,		NULL, LEAF},	/* RPL_YOUREBANNEDCREEP */
   {"318",	"",	(Function) whoispenalty,	NULL, LEAF},	/* :End of /WHOIS */
   {"369",	"",	(Function) got369,		NULL, LEAF},	/* :End of /WHOWAS */
   {"718",	"",	(Function) got718,		NULL, LEAF},