[project @ 2005-07-07 21:19:26 by unknown_lamer]
[clinton/bobotpp.git] / source / ServerQueue.C
index c644964..b525747 100644 (file)
@@ -301,6 +301,14 @@ ServerQueue::sendWho(String who)
 {
   addLine(String("WHO ") + who,
           WHO_PRIORITY, WHO_PENALTY, ServerQueueItem::WHO);
+
+#ifdef USESCRIPTS
+  Interp::bot->botInterp->RunHooks (Hook::SEND_WHO,
+                                   who,
+                                   scm_list_n (Utils::
+                                                str2scm (who),
+                                                SCM_UNDEFINED));
+#endif
 }
 
 void
@@ -308,4 +316,12 @@ ServerQueue::sendWhois(String nick)
 {
   addLine(String("WHOIS ") + nick,
           NICK_PRIORITY, WHOIS_PENALTY, ServerQueueItem::WHOIS);
+
+#ifdef USESCRIPTS
+  Interp::bot->botInterp->RunHooks (Hook::SEND_WHOIS,
+                                   nick,
+                                   scm_list_n (Utils::
+                                                str2scm (nick),
+                                                SCM_UNDEFINED));
+#endif
 }