From 329fbd3ee818767e70503fe85de7a89403e415ad Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 29 May 2000 17:10:22 +0000 Subject: [PATCH] signal_stop_by_name() didn't work git-svn-id: http://svn.irssi.org/repos/irssi/trunk@251 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/signals.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)