summaryrefslogtreecommitdiff
path: root/src/channel.cpp
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2008-06-10 00:45:21 +0000
committerRoderic Morris <roderic@ccs.neu.edu>2008-06-10 00:45:21 +0000
commitf6f031fa4db6fa0ccd6e0b433f61479e9fd85477 (patch)
treef68634271d7e7f315c122ed7a3a08ad1d05b58b6 /src/channel.cpp
parent2cf38d37f86c5e5d82d77713afd093735db0598a (diff)
downloadmana-f6f031fa4db6fa0ccd6e0b433f61479e9fd85477.tar.gz
mana-f6f031fa4db6fa0ccd6e0b433f61479e9fd85477.tar.bz2
mana-f6f031fa4db6fa0ccd6e0b433f61479e9fd85477.tar.xz
mana-f6f031fa4db6fa0ccd6e0b433f61479e9fd85477.zip
add commandhandler class and fix / add some commands
Diffstat (limited to 'src/channel.cpp')
-rw-r--r--src/channel.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/channel.cpp b/src/channel.cpp
index 2bebcf51..969386f1 100644
--- a/src/channel.cpp
+++ b/src/channel.cpp
@@ -21,7 +21,6 @@
* $Id$
*/
-#include <algorithm>
#include "channel.h"
@@ -34,20 +33,3 @@ Channel::Channel(short id,
{
}
-
-void Channel::addUser(const std::string &user)
-{
- // Check if the user already exists in the channel
- ChannelUsers::const_iterator i = mUserList.begin(),
- i_end = mUserList.end();
- if (std::find(i, i_end, user) != i_end) return;
- mUserList.push_back(user);
-}
-
-void Channel::removeUser(const std::string &user)
-{
- ChannelUsers::iterator i_end = mUserList.end(),
- i = std::find(mUserList.begin(), i_end, user);
- if (i == i_end) return;
- mUserList.erase(i);
-}