X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FEventLogger.c;h=e131478b54bc8d8379e2dcb54ae947c224a455ec;hp=f5a8a315942489eb53c0be990d28fc29fbdd8497;hb=HEAD;hpb=ee39770362f69ced5b52104b622582e882af0b77 diff --git a/src/EventLogger.c b/src/EventLogger.c index f5a8a31..e131478 100644 --- a/src/EventLogger.c +++ b/src/EventLogger.c @@ -81,6 +81,7 @@ void logEvent(struct Event *event) { if((event->chan->flags & CHANFLAG_CHAN_REGISTERED)) printf_mysql_query("INSERT INTO `godlog` (`godlog_cid`, `godlog_uid`, `godlog_time`, `godlog_cmd`) VALUES ('%d', '%d', UNIX_TIMESTAMP(), '%s')", event->chan->channel_id, userid, escape_string(fullcmd)); } + printf_log("main", LOG_OVERRIDE, "[%s:%s (%s)] %s", (event->chan ? event->chan->name : "*"), event->user->nick, auth, fullcmd); } }