added new multi log system
[NeonServV5.git] / src / modules / NeonSpam.mod / event_neonspam_join.c
index 425ad08856ca565f22810fc970d08504f2b04b94..f34b1a387f89917f41e3274393465cca047d33f8 100644 (file)
@@ -1,4 +1,4 @@
-/* event_neonspam_join.c - NeonServ v5.4
+/* event_neonspam_join.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -27,7 +27,6 @@ struct neonspam_event_join_cache {
 };
 
 static void neonspam_event_join(struct ChanUser *chanuser) {
-    if(chanuser->user->flags & USERFLAG_WAS_REGISTRING) return;
     struct ClientSocket *client = getChannelBot(chanuser->chan, BOTID);
     if(!client) return; //we can't "see" this event
     if(chanuser->user == client->user) {
@@ -47,7 +46,7 @@ static void neonspam_event_join(struct ChanUser *chanuser) {
         } else {
             struct neonspam_event_join_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("neonspam", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;