git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5199
e03df62e-2008-0410-955e-
edbf42e46eb7
#include "users.h"
#include "channels.h"
#include "users.h"
#include "channels.h"
+const char* Spacify(char* n);
void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick);
class cmd_whois : public command_t
void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick);
class cmd_whois : public command_t
#include "modules.h"
#include "wildcard.h"
#include "commands/cmd_oper.h"
#include "modules.h"
#include "wildcard.h"
#include "commands/cmd_oper.h"
+#include "commands/cmd_whois.h"
bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
{
bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
{
if (found)
{
/* correct oper credentials */
if (found)
{
/* correct oper credentials */
- ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,OperType,parameters[0]);
- user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,OperType);
+ ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,Spacify(OperType),parameters[0]);
+ user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,Spacify(OperType));
if (!user->modes[UM_OPERATOR])
user->Oper(OperType);
}
if (!user->modes[UM_OPERATOR])
user->Oper(OperType);
}