#include "DCCPerson.H"
#include "DCCManager.H"
#include "Parser.H"
+#include "Commands.H"
+#include "Message.H"
#include <libguile.h>
#define VERIFY_STRING(par) if (!SCM_STRINGP((par))) \
Utils::scm2str (message));
return SCM_UNSPECIFIED;
}
+
+SCM
+ScriptCommands::sendNotice (SCM to, SCM message)
+{
+ VERIFY_STRING (to);
+ VERIFY_STRING (message);
+
+ if (Commands::Notice (Interp::bot,
+ Utils::scm2str (to),
+ Utils::scm2str (message))
+ == Ok)
+ {
+ return SCM_BOOL_T;
+ }
+ else
+ {
+ return SCM_BOOL_F;
+ }
+}
#endif