From 1a3297e97427c3dd6c0d25c6c0591fbbdb94d8a7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 10 Sep 2006 19:48:30 +0000 Subject: * Fix ChanModes::ModeString to not try and set a key as a user mode ;) * Tweak the way cyclehosts works, so that mode change is not echoed back to user who changes their host/ident git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5208 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 56d578687..8c6711d64 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1754,10 +1754,10 @@ bool userrec::ChangeDisplayedHost(const char* host) { if ((*i)->channel) { - (*i)->channel->WriteAllExceptSender(this, 0, "JOIN %s", (*i)->channel->name); + (*i)->channel->WriteAllExceptSender(this, false, 0, "JOIN %s", (*i)->channel->name); std::string n = this->ServerInstance->Modes->ModeString(this, (*i)->channel); - if (n.length()) - (*i)->channel->WriteChannelWithServ(this->ServerInstance->Config->ServerName, "MODE %s +%s", (*i)->channel->name, n.c_str()); + if (n.length() > 0) + (*i)->channel->WriteAllExceptSender(this, true, 0, "MODE %s +%s", (*i)->channel->name, n.c_str()); } } } @@ -1784,10 +1784,10 @@ bool userrec::ChangeIdent(const char* newident) { if ((*i)->channel) { - (*i)->channel->WriteAllExceptSender(this, 0, "JOIN %s", (*i)->channel->name); + (*i)->channel->WriteAllExceptSender(this, false, 0, "JOIN %s", (*i)->channel->name); std::string n = this->ServerInstance->Modes->ModeString(this, (*i)->channel); - if (n.length()) - (*i)->channel->WriteChannelWithServ(this->ServerInstance->Config->ServerName, "MODE %s +%s", (*i)->channel->name, n.c_str()); + if (n.length() > 0) + (*i)->channel->WriteAllExceptSender(this, true, 0, "MODE %s +%s", (*i)->channel->name, n.c_str()); } } } -- cgit v1.3.1-10-gc9f91