summaryrefslogtreecommitdiff
path: root/src/cmd_whowas.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-08 18:59:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-08 18:59:13 +0000
commitfea1a27cb96a114f698eedcf90401b78406108fb (patch)
tree194649decb5d88184149307571bba6873537853d /src/cmd_whowas.cpp
parenta7543c881be4c900b68a54714de7c1e677acbb09 (diff)
WHEEEEE!!!!!
All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whowas.cpp')
-rw-r--r--src/cmd_whowas.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp
index ae3bdb953..39c028618 100644
--- a/src/cmd_whowas.cpp
+++ b/src/cmd_whowas.cpp
@@ -30,7 +30,7 @@ void cmd_whowas::Handle (const char** parameters, int pcnt, userrec* user)
if (i == whowas.end())
{
- WriteServ(user->fd,"406 %s %s :There was no such nickname",user->nick,parameters[0]);
+ user->WriteServ("406 %s %s :There was no such nickname",user->nick,parameters[0]);
}
else
{
@@ -50,22 +50,22 @@ void cmd_whowas::Handle (const char** parameters, int pcnt, userrec* user)
strlcpy(b,asctime(timeinfo),MAXBUF);
b[24] = 0;
- WriteServ(user->fd,"314 %s %s %s %s * :%s",user->nick,parameters[0],u->ident,u->dhost,u->gecos);
+ user->WriteServ("314 %s %s %s %s * :%s",user->nick,parameters[0],u->ident,u->dhost,u->gecos);
if(*user->oper)
- WriteServ(user->fd,"379 %s %s :was connecting from *@%s", user->nick, parameters[0], u->host);
+ user->WriteServ("379 %s %s :was connecting from *@%s", user->nick, parameters[0], u->host);
if(*Config->HideWhoisServer && !(*user->oper))
- WriteServ(user->fd,"312 %s %s %s :%s",user->nick,parameters[0], Config->HideWhoisServer, b);
+ user->WriteServ("312 %s %s %s :%s",user->nick,parameters[0], Config->HideWhoisServer, b);
else
- WriteServ(user->fd,"312 %s %s %s :%s",user->nick,parameters[0], u->server, b);
+ user->WriteServ("312 %s %s %s :%s",user->nick,parameters[0], u->server, b);
}
}
else
{
- WriteServ(user->fd,"406 %s %s :There was no such nickname",user->nick,parameters[0]);
+ user->WriteServ("406 %s %s :There was no such nickname",user->nick,parameters[0]);
}
}
- WriteServ(user->fd,"369 %s %s :End of WHOWAS",user->nick,parameters[0]);
+ user->WriteServ("369 %s %s :End of WHOWAS",user->nick,parameters[0]);
}