1
0
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:
Adam
2013-04-07 23:46:44 -05:00
parent 36602224b8
commit fb7fef7a84
64 changed files with 772 additions and 806 deletions
+2 -2
View File
@@ -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)