- // no parameters, show the current silence list.
- // Use Extensible::GetExt to fetch the silence list
- silencelist* sl = (silencelist*)user->GetExt("silence_list");
- // if the user has a silence list associated with their user record, show it
- if (sl)
- {
- for (silencelist::const_iterator c = sl->begin(); c < sl->end(); c++)
- {
- WriteServ(user->fd,"271 %s %s %s!*@*",user->nick, user->nick,c->c_str());
- }
- }
- WriteServ(user->fd,"272 %s :End of Silence List",user->nick);