diff options
| author | 2008-05-19 21:16:42 +0000 | |
|---|---|---|
| committer | 2008-05-19 21:16:42 +0000 | |
| commit | 31f1e7ad092f8bf16ee653cc105eea4a769650ca (patch) | |
| tree | dced0411d5fbe803fe92ea54cb03d36c0a817563 /include/u_listmode.h | |
| parent | Convert channel banlist members to std::string (diff) | |
| download | inspircd++-31f1e7ad092f8bf16ee653cc105eea4a769650ca.tar.gz inspircd++-31f1e7ad092f8bf16ee653cc105eea4a769650ca.tar.bz2 inspircd++-31f1e7ad092f8bf16ee653cc105eea4a769650ca.zip | |
Convert channel::name to std::string, this was a beastie!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9770 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/u_listmode.h')
| -rw-r--r-- | include/u_listmode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index a7df014ed..5d1607b5c 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -153,15 +153,15 @@ class ListModeBase : public ModeHandler { for (modelist::reverse_iterator it = el->rbegin(); it != el->rend(); ++it) { - user->WriteNumeric(listnumeric, "%s %s %s %s %s", user->nick.c_str(), channel->name, it->mask.c_str(), it->nick.c_str(), it->time.c_str()); + user->WriteNumeric(listnumeric, "%s %s %s %s %s", user->nick.c_str(), channel->name.c_str(), it->mask.c_str(), it->nick.c_str(), it->time.c_str()); } } - user->WriteNumeric(endoflistnumeric, "%s %s :%s", user->nick.c_str(), channel->name, endofliststring.c_str()); + user->WriteNumeric(endoflistnumeric, "%s %s :%s", user->nick.c_str(), channel->name.c_str(), endofliststring.c_str()); } virtual void DisplayEmptyList(User* user, Channel* channel) { - user->WriteNumeric(endoflistnumeric, "%s %s :%s", user->nick.c_str(), channel->name, endofliststring.c_str()); + user->WriteNumeric(endoflistnumeric, "%s %s :%s", user->nick.c_str(), channel->name.c_str(), endofliststring.c_str()); } /** Remove all instances of the mode from a channel. @@ -323,7 +323,7 @@ class ListModeBase : public ModeHandler /* List is full, give subclass a chance to send a custom message */ if (!TellListTooLong(source, channel, parameter)) { - source->WriteNumeric(478, "%s %s %s :Channel ban/ignore list is full", source->nick.c_str(), channel->name, parameter.c_str()); + source->WriteNumeric(478, "%s %s %s :Channel ban/ignore list is full", source->nick.c_str(), channel->name.c_str(), parameter.c_str()); } parameter = ""; |
