diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 11:03:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 11:03:56 +0000 |
commit | 5bb7fddb282c4dcc98d4a696c42c99ef12f88d80 (patch) | |
tree | 41a896e7245d6e1f13f8f0967bf11833e9f8c68a /src/mode.cpp | |
parent | d582107b33c3b154747a0a38f33963af7ad3c53f (diff) |
Moving more stuff into class ServerConfig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2394 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index d63ffcfb1..6e6270104 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -661,7 +661,7 @@ void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int break; case 'h': - if (((param >= pcnt)) || (!AllowHalfop)) break; + if (((param >= pcnt)) || (!Config->AllowHalfop)) break; if (mdir == 1) { MOD_RESULT = 0; @@ -1130,7 +1130,7 @@ void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int { if (!silent) { - WriteChannelWithServ(ServerName,chan,"MODE %s %s",chan->name,outstr); + WriteChannelWithServ(Config->ServerName,chan,"MODE %s %s",chan->name,outstr); } } @@ -1206,7 +1206,7 @@ bool process_module_umode(char umode, userrec* source, void* dest, bool adding) if (!source) { s2 = new userrec; - strlcpy(s2->nick,ServerName,NICKMAX); + strlcpy(s2->nick,Config->ServerName,NICKMAX); strlcpy(s2->modes,"o",52); s2->fd = -1; source = s2; @@ -1904,7 +1904,7 @@ void merge_mode(char **parameters, int pcnt) if (Ptr) { userrec s2; - strlcpy(s2.nick,ServerName,NICKMAX); + strlcpy(s2.nick,Config->ServerName,NICKMAX); strcpy(s2.modes,"o"); s2.fd = -1; process_modes(parameters,&s2,Ptr,STATUS_OP,pcnt,true,true,false); |