diff mcabber/mcabber/commands.c @ 2024:789779fd728d

Fix /event usage when a reason is provided
author Mikael Berthe <mikael@lilotux.net>
date Sat, 25 Aug 2012 12:05:19 +0200
parents f88de5187d3b
children 0771e130f79d
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c	Mon Jul 30 22:39:17 2012 +0200
+++ b/mcabber/mcabber/commands.c	Sat Aug 25 12:05:19 2012 +0200
@@ -3598,7 +3598,7 @@
     }
     for (p = evidlst; p; p = g_slist_next(p)) {
       if (evs_callback(p->data, action,
-                       (const char*)(paramlst+2)) == -1) {
+                       (const char*)*(paramlst+2)) == -1) {
         scr_LogPrint(LPRINT_NORMAL, "Event %s not found.",
                      (const char *)p->data);
       }