std::string InspIRCd::GetServerDescription(const char* servername)
{
- std::string description = "";
+ std::string description;
FOREACH_MOD_I(this,I_OnGetServerDescription,OnGetServerDescription(servername,description));
userrec* InspIRCd::FindNick(const char* nick)
{
- user_hash::iterator iter;
-
- if (!nick)
- return NULL;
-
- iter = clientlist.find(nick);
+ user_hash::iterator iter = clientlist.find(nick);
if (iter == clientlist.end())
return NULL;
chanrec* InspIRCd::FindChan(const char* chan)
{
- chan_hash::iterator iter;
-
- if (!chan)
- return NULL;
-
- iter = chanlist.find(chan);
+ chan_hash::iterator iter = chanlist.find(chan);
if (iter == chanlist.end())
/* Couldn't find it */
return iter->second;
}
-
/*
* sends out an error notice to all connected clients (not to be used
* lightly!)
// this counts only registered users, so that the percentages in /MAP don't mess up when users are sitting in an unregistered state
int InspIRCd::RegisteredUserCount()
{
- int c = 0;
- return this->UnregisteredUserCount() - clientlist.size();
+ return clientlist.size() - this->UnregisteredUserCount();
}
int InspIRCd::InvisibleUserCount()