Sfoglia il codice sorgente

* Added log msg (+w) for when a msg is received when umode +g. (#44)

svn: 2058
Bryan Drewery 21 anni fa
parent
commit
e8b8ba81bd
2 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. 1 0
      doc/UPDATES
  2. 16 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -105,6 +105,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Bans aren't checked on join anymore if the channel is +take
 * Fixed an outstanding bug on linking from a hub to another hub.
 * Fixed cmd_cmdpass not knowing leaf cmds from a hub.
+* Added log msg (+w) for when a msg is received when umode +g. (#44)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

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

@@ -1280,6 +1280,21 @@ static int got406(char *from, char *msg)
  
   return 0;
 }
+
+/* 718 $me nick user@host :msg 
+ * for receiving a msg while +g
+ */
+static int got718(char *from, char *msg)
+{
+  char *nick = NULL, *uhost = NULL;
+
+  newsplit(&msg);
+  nick = newsplit(&msg);
+  uhost = newsplit(&msg);
+  fixcolon(msg);
+
+  putlog(LOG_WALL, "*", "(+g) !%s!%s! %s", nick, uhost, msg);
+}
  
 static cmd_t my_raw_binds[] =
 {
@@ -1315,6 +1330,7 @@ static cmd_t my_raw_binds[] =
   {"406",	"",	(Function) got406,		NULL, LEAF},
   {"318",	"",	(Function) whoispenalty,	NULL, LEAF},	/* :End of /WHOIS */
   {"369",	"",	(Function) got369,		NULL, LEAF},	/* :End of /WHOWAS */
+  {"718",	"",	(Function) got718,		NULL, LEAF},
   {NULL,	NULL,	NULL,				NULL, 0}
 };