Prechádzať zdrojové kódy

Ignore CALLERID requests from ignored users (#63)

ducch 13 rokov pred
rodič
commit
f0317e2f62
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      src/mod/server.mod/servmsg.c

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

@@ -1918,6 +1918,10 @@ static int got465(char *from, char *msg)
 static int got718(char *from, char *msg)
 static int got718(char *from, char *msg)
 {
 {
   char *nick = NULL, *uhost = NULL;
   char *nick = NULL, *uhost = NULL;
+  bool ignoring = match_ignore(from);
+
+  if (ignoring)
+    return 0;
 
 
   newsplit(&msg);
   newsplit(&msg);
   nick = newsplit(&msg);
   nick = newsplit(&msg);