1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 09:53:13 +02:00

Don't crash on channel messages.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1528 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-03 23:10:33 +00:00
parent d977211ac0
commit 72b8b7f422
+1 -1
View File
@@ -1135,7 +1135,7 @@ int anope_event_privmsg(const char *source, int ac, const char **av)
{
User *u = find_byuid(source);
BotInfo *bi = findbot(av[0]);
m_privmsg(u->nick, bi->nick, av[1]);
m_privmsg(u->nick, bi ? bi->nick: av[0], av[1]);
return MOD_CONT;
}