mirror of
https://github.com/anope/anope.git
synced 2026-07-06 05:13: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user