diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 23:21:59 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 23:21:59 +0000 |
commit | 798a7139ab5d28f15676217e597342404215bca7 (patch) | |
tree | 17838900e4d8eccb380433e3c2890ef8a85caa51 | |
parent | aaf5226111f515f4baa68e95ea6a1db740828ac3 (diff) |
Fixed externs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3561 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/message.h | 1 | ||||
-rw-r--r-- | src/helperfuncs.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/message.h b/include/message.h index 8741b8293..af904df92 100644 --- a/include/message.h +++ b/include/message.h @@ -42,7 +42,6 @@ int isident(const char* n); int isnick(const char* n); const char* cmode(userrec *user, chanrec *chan); int cstatus(userrec *user, chanrec *chan); -int has_channel(userrec *u, chanrec *c); void TidyBan(char *ban); std::string chlist(userrec *user, userrec* source); void send_network_quit(const char* nick, const char* reason); diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 2a929f3b2..7c0d37196 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1351,11 +1351,11 @@ void userlist(userrec *user,chanrec *c) /* Improvement by Brain - this doesnt change in value, so why was it inside * the loop? */ - bool has_user = c->HasUser(user,c); + bool has_user = c->HasUser(user); for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { - if ((!n) && (strchr(i->second->modes,'i'))) + if ((!has_user) && (strchr(i->second->modes,'i'))) { /* * user is +i, and source not on the channel, does not show |