diff options
| author | Adam <Adam@anope.org> | 2010-10-04 21:46:15 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-10-04 21:46:15 -0400 |
| commit | 10833f9d3f006ba77623ebdc4e1f1003fe9e299b (patch) | |
| tree | bec5f995c293e4ee9e595c44b9289f38b45b8d5d /src/channels.cpp | |
| parent | 592060ac756dd7ac5983aac987264ff5eaecd265 (diff) | |
Made anoperc stop/restart send the cycleonglobal, and fixed logfiles to be opened with append not truncate
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 65298ad51..c39b7615b 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -175,7 +175,8 @@ void Channel::JoinUser(User *user) } } - if (update_ts) + /* Update the TS, unless I'm joining a bot already */ + if (update_ts && user->server != Me) { /* Send the updated TS */ if (!this->ci->bi || !this->FindUser(this->ci->bi)) @@ -831,9 +832,9 @@ void Channel::SetModes(BotInfo *bi, bool EnforceMLock, const char *cmodes, ...) * @param mode the modes * @param EnforceMLock true to enforce mlock */ -void Channel::SetModesInternal(User *setter, const Anope::string &modes, bool EnforceMLock) +void Channel::SetModesInternal(User *setter, const Anope::string &mode, bool EnforceMLock) { - spacesepstream sep_modes(modes); + spacesepstream sep_modes(mode); Anope::string m; sep_modes.GetToken(m); @@ -897,7 +898,7 @@ void Channel::SetModesInternal(User *setter, const Anope::string &modes, bool En this->RemoveModeInternal(cm, token, EnforceMLock); } else - Log() << "warning: Channel::SetModesInternal() recieved more modes requiring params than params, modes: " << modes; + Log() << "warning: Channel::SetModesInternal() recieved more modes requiring params than params, modes: " << mode; } if (setter) |
