void User::CloseSocket()
{
- if (this > -1)
+ if (this->fd > -1)
{
ServerInstance->SE->Shutdown(this, 2);
ServerInstance->SE->Close(this);
void User::WriteWallOps(const std::string &text)
{
- if (!IS_OPER(this) && IS_LOCAL(this))
+ if (!IS_LOCAL(this))
return;
std::string wallop("WALLOPS :");
void User::WriteWallOps(const char* text, ...)
{
+ if (!IS_LOCAL(this))
+ return;
+
char textbuffer[MAXBUF];
va_list argsPtr;