mirror of
https://github.com/anope/anope.git
synced 2026-06-30 21:26:37 +02:00
Optimizations of much of the more commonly used code
This commit is contained in:
+2
-2
@@ -224,8 +224,8 @@ void BotInfo::Join(Channel *c, ChannelStatus *status)
|
||||
|
||||
void BotInfo::Join(const Anope::string &chname, ChannelStatus *status)
|
||||
{
|
||||
Channel *c = Channel::Find(chname);
|
||||
return this->Join(c ? c : new Channel(chname), status);
|
||||
bool c;
|
||||
return this->Join(Channel::FindOrCreate(chname, c), status);
|
||||
}
|
||||
|
||||
void BotInfo::Part(Channel *c, const Anope::string &reason)
|
||||
|
||||
Reference in New Issue
Block a user