File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 17
17
#include " znc/IRCNetwork.h"
18
18
#include " znc/Modules.h"
19
19
#include " time.h"
20
+ #include " sys/wait.h"
20
21
21
22
using std::map;
22
23
using std::string;
@@ -188,7 +189,9 @@ class CNotifoMod : public CModule
188
189
/* and start executing pidgin..or w/e you want*/
189
190
}
190
191
else /* parent executes this */
191
- { }
192
+ {
193
+ wait (NULL );
194
+ }
192
195
return true ;
193
196
}
194
197
@@ -614,13 +617,15 @@ class CNotifoMod : public CModule
614
617
CString msg = " From " + nick.GetNick ();
615
618
msg += " : " + message;
616
619
617
- bool sent = send_message (msg, title, nick.GetNick ());
620
+ /* bool sent = send_message(msg, title, nick.GetNick());*/
621
+ send_message (msg, title, nick.GetNick ());
618
622
619
- if (sent) {
623
+ /* * if (sent) {
620
624
PutIRC("PRIVMSG " + nick.GetNick() + " : [znc] User not connected. Notification message sent.");
621
625
} else {
622
626
PutIRC("PRIVMSG " + nick.GetNick() + " : [znc] User not connected. Notification message failed to send.");
623
627
}
628
+ */
624
629
}
625
630
626
631
return CONTINUE;
You can’t perform that action at this time.
0 commit comments