瀏覽代碼

Ignore CALLERID requests from ignored users (#63)

ducch 13 年之前
父節點
當前提交
f0317e2f62
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)
 {
   char *nick = NULL, *uhost = NULL;
+  bool ignoring = match_ignore(from);
+
+  if (ignoring)
+    return 0;
 
   newsplit(&msg);
   nick = newsplit(&msg);