diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-20 11:47:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-20 11:47:04 +0000 |
commit | c8a58bffad71eb4a6032b5dd96699dabde559b56 (patch) | |
tree | 3cc32a63efd103c093b2e10fbe347c7c1356399c /src/irc/flood | |
parent | 0b12f76d1f429fcc1d6818ec1ceb6e1e7224b84e (diff) | |
download | irssi-c8a58bffad71eb4a6032b5dd96699dabde559b56.zip |
whops, still wasn't fixed :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2327 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/flood')
-rw-r--r-- | src/irc/flood/flood.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c index de7d292c..320ec5c6 100644 --- a/src/irc/flood/flood.c +++ b/src/irc/flood/flood.c @@ -286,11 +286,13 @@ static void read_settings(void) flood_max_msgs = settings_get_int("flood_max_msgs"); if (flood_timecheck > 0 && flood_max_msgs > 0) { - flood_tag = g_timeout_add(500, (GSourceFunc) flood_timeout, NULL); + if (flood_tag == -1) { + flood_tag = g_timeout_add(500, (GSourceFunc) flood_timeout, NULL); - signal_add("event privmsg", (SIGNAL_FUNC) flood_privmsg); - signal_add("event notice", (SIGNAL_FUNC) flood_notice); - signal_add("ctcp msg", (SIGNAL_FUNC) flood_ctcp); + signal_add("event privmsg", (SIGNAL_FUNC) flood_privmsg); + signal_add("event notice", (SIGNAL_FUNC) flood_notice); + signal_add("ctcp msg", (SIGNAL_FUNC) flood_ctcp); + } } else if (flood_tag != -1) { g_source_remove(flood_tag); flood_tag = -1; |