bot:msg and bot:say are the same thing now
2005-06-24 Clinton Ebadi <clinton@unknownlamer.org>
+ * source/Commands.C (Msg): Move body of Say to an if inside of this
+ (Say): Just call Msg
+
* source/ScriptCommands.C (sendNotice): Returns error code instead
of just #t or #f
+ Misc
* Added (bobotpp bot) module that modules may use to gain access
to the bobot++ functions
+ * bot:msg and bot:say may both send to channels and users (instead
+ of bot:msg for users and bot:say for channels)
- Documentation
+ Merged documentation patch from Dale Smith (thanks)
if (Utils::channel_p(who))
{
- return Commands::Say (bot, who, message);
+ if (!CHANNEL(who))
+ {
+ return NotOnChannel (who);
+ }
}
if (message == "")
Message
Commands::Say(Bot *bot, String channel, String message)
{
- CHECK_CONNECTION;
-
- if (!CHANNEL(channel))
- return NotOnChannel(channel);
-
- QUEUE->sendPrivmsg(channel, message);
-
- return Ok;
+ return Commands::Msg (bot, channel, message);
}