From 4fa01bc07bed242efabb82cb5a31959d0075abac Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 Jul 2006 19:46:55 +0000 Subject: Implement DisplayList virtual method calls, and implement it in cmode_b git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4185 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_b.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/modes/cmode_b.cpp') diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index 5d709d4b7..ccc6bdfcf 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -45,6 +45,17 @@ ModeAction ModeChannelBan::OnModeChange(userrec* source, userrec* dest, chanrec* return MODEACTION_ALLOW; } +void ModeChannelBan::DisplayList(userrec* user, chanrec* channel) +{ + /* Display the channel banlist */ + for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++) + { + WriteServ(user->fd,"367 %s %s %s %s %d",user->nick, channel->name, i->data, i->set_by, i->set_time); + } + WriteServ(user->fd,"368 %s %s :End of channel ban list",user->nick, channel->name); + return; +} + std::string& ModeChannelBan::AddBan(userrec *user,std::string &dest,chanrec *chan,int status) { if ((!user) || (!chan)) -- cgit v1.2.3