diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-29 17:10:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-29 17:10:22 +0000 |
commit | 329fbd3ee818767e70503fe85de7a89403e415ad (patch) | |
tree | 99d17ad64b178dd7f4b9a7ac4cf8717dddaf7cd7 /src/core | |
parent | 93173356bb2a48aebd185e689eeb3ca5f2e31a02 (diff) | |
download | irssi-329fbd3ee818767e70503fe85de7a89403e415ad.zip |
signal_stop_by_name() didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@251 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/signals.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/signals.c b/src/core/signals.c index 8ab313bb..f29d9b59 100644 --- a/src/core/signals.c +++ b/src/core/signals.c @@ -289,8 +289,10 @@ void signal_stop(void) void signal_stop_by_name(const char *signal) { SIGNAL_REC *rec; + int signal_id; - rec = g_hash_table_lookup(signals, signal); + signal_id = module_get_uniq_id_str("signals", signal); + rec = g_hash_table_lookup(signals, GINT_TO_POINTER(signal_id)); if (rec == NULL) g_warning("signal_stop_by_name() : unknown signal \"%s\"", signal); else if (rec->emitting <= rec->stop_emit) |