cvs: php4 /ext/ircg ircg.c
| From: | Sascha Schumann | Date: | Tue, 18 Sep 2001 22:27:18 +0000 |
| Subject: | cvs: php4 /ext/ircg ircg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7459@lists.php.net to get a copy of this message | ||
sas Tue Sep 18 18:27:18 2001 EDT
Modified files:
/php4/ext/ircg ircg.c
Log:
Before adding a username to the ignore list, ensure that it is unlisted.
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.109 php4/ext/ircg/ircg.c:1.110
--- php4/ext/ircg/ircg.c:1.109 Sun Sep 9 10:31:36 2001
+++ php4/ext/ircg/ircg.c Tue Sep 18 18:27:18 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ircg.c,v 1.109 2001/09/09 14:31:36 sas Exp $ */
+/* $Id: ircg.c,v 1.110 2001/09/18 22:27:18 sas Exp $ */
#include <time.h>
@@ -1204,7 +1204,8 @@
if (!conn) RETURN_FALSE;
smart_str_setl(&s, Z_STRVAL_PP(args[1]), Z_STRLEN_PP(args[1]));
- irc_ignore_add(&conn->conn, &s, 1);
+ if (irc_ignore_check(&conn->conn, &s) == 0)
+ irc_ignore_add(&conn->conn, &s, 1);
#endif
}
/* }}} */