mirror of
https://github.com/anope/anope.git
synced 2026-07-05 03:13:13 +02:00
Fixed a crash on insp12 if we receeve a part without a reason
This commit is contained in:
@@ -782,7 +782,7 @@ bool event_privmsg(const Anope::string &source, const std::vector<Anope::string>
|
||||
|
||||
bool event_part(const Anope::string &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
do_part(source, params[0], params[1]);
|
||||
do_part(source, params[0], (params.size() > 1 ? params[1] : ""));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user