void ServerEvents::OnMutelistItem( const wxString& /*unused*/, const wxString& mutee, const wxString& description ) { wxString message = mutee; wxString desc = description; wxString mutetime = GetWordParam( desc ); long time; if ( mutetime == _T("indefinite") ) message << _(" indefinite time remaining"); else if ( mutetime.ToLong(&time) ) message << wxString::Format( _(" %d minutes remaining"), time/60 + 1 ); else message << mutetime; if ( !desc.IsEmpty() ) message << _T(", ") << desc; mutelistWindow( message ); }
void ServerEvents::OnMutelistItem(const std::string& /*unused*/, const std::string& mutee, const std::string& description) { wxString message = TowxString(mutee); wxString desc = TowxString(description); wxString mutetime = desc.AfterFirst(wxChar(' ')); long time; if (mutetime == _T("indefinite")) message << _(" indefinite time remaining"); else if (mutetime.ToLong(&time)) message << wxString::Format(_(" %d minutes remaining"), time / 60 + 1); else message << mutetime; if (!desc.IsEmpty()) message << _T(", ") << desc; mutelistWindow(message); }
void ServerEvents::OnMutelistEnd(const std::string& channel) { mutelistWindow(_("End mutelist for ") + TowxString(channel)); }
void ServerEvents::OnMutelistBegin(const std::string& channel) { mutelistWindow(wxString::Format(_("Begin mutelist for channel %s"), channel.c_str()), wxString::Format(_("%s mutelist"), channel.c_str())); }
void ServerEvents::OnMutelistEnd( const wxString& channel ) { mutelistWindow( _("End mutelist for ") + channel ); }
void ServerEvents::OnMutelistBegin( const wxString& channel ) { mutelistWindow( _("Begin mutelist for ") + channel, wxString::Format( _("%s mutelist"), channel.c_str() ) ); }