diff options
| author | 2006-08-08 12:51:52 +0000 | |
|---|---|---|
| committer | 2006-08-08 12:51:52 +0000 | |
| commit | 580e7be1a6280fa76c25386fc94975a57e74fe07 (patch) | |
| tree | a540870f2d6c1de8fa622afba4107734f03a6636 /src/modules/m_remove.cpp | |
| parent | More checks for running out of file descriptors, or file descriptors being fo... (diff) | |
Dont try and write to a user after theyve parted
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4785 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_remove.cpp')
| -rw-r--r-- | src/modules/m_remove.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 22d2945b6..d6c3314ad 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -126,9 +126,10 @@ class cmd_remove : public command_t /* For now, we'll let everyone remove their level and below, eg ops can remove ops, halfops, voices, and those with no mode (no moders actually are set to 1) */ if ((ulevel >= tlevel && tlevel != 5) && (!Srv->IsUlined(target->server))) { - Srv->PartUserFromChannel(target,std::string(parameters[1]), "Removed by "+std::string(user->nick)+":"+result); Srv->SendTo(NULL,user,"NOTICE "+std::string(channel->name)+" : "+std::string(user->nick)+" removed "+std::string(target->nick)+ " from the channel"); Srv->SendTo(NULL,target,"NOTICE "+std::string(target->nick)+" :*** "+std::string(user->nick)+" removed you from "+std::string(channel->name)+" with the message:"+std::string(result)); + /* Fix by brain: If the user removes themselves, theres nobody to send those notices to, so this must come last! */ + Srv->PartUserFromChannel(target,std::string(parameters[1]), "Removed by "+std::string(user->nick)+":"+result); } else { |
