diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 13:24:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 13:24:31 +0000 |
commit | 6b8e9b7761e32e238d14dbfa662b8530857777cc (patch) | |
tree | 09e6999300f1719d4e98042d2b73509d9daacfbf /src | |
parent | 7f6637281f64b4ed6b4fafe4dd0e03bd85bcab00 (diff) |
More references to RULES and MOTD
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2406 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/helperfuncs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 7434a9bec..6053d9126 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1120,16 +1120,16 @@ void ShowMOTD(userrec *user) { char buf[65536]; std::string WholeMOTD = ""; - if (!MOTD.size()) + if (!Config->MOTD.size()) { WriteServ(user->fd,"422 %s :Message of the day file is missing.",user->nick); return; } snprintf(buf,65535,":%s 375 %s :- %s message of the day\r\n", Config->ServerName, user->nick, Config->ServerName); WholeMOTD = WholeMOTD + buf; - for (unsigned int i = 0; i != MOTD.size(); i++) + for (unsigned int i = 0; i < Config->MOTD.size(); i++) { - snprintf(buf,65535,":%s 372 %s :- %s\r\n", Config->ServerName, user->nick, MOTD[i].c_str()); + snprintf(buf,65535,":%s 372 %s :- %s\r\n", Config->ServerName, user->nick, Config->MOTD[i].c_str()); WholeMOTD = WholeMOTD + buf; } snprintf(buf,65535,":%s 376 %s :End of message of the day.\r\n", Config->ServerName, user->nick); @@ -1147,9 +1147,9 @@ void ShowRULES(userrec *user) return; } WriteServ(user->fd,"NOTICE %s :%s rules",user->nick,Config->ServerName); - for (unsigned int i = 0; i != RULES.size(); i++) + for (unsigned int i = 0; i < Config->RULES.size(); i++) { - WriteServ(user->fd,"NOTICE %s :%s",user->nick,RULES[i].c_str()); + WriteServ(user->fd,"NOTICE %s :%s",user->nick,Config->RULES[i].c_str()); } WriteServ(user->fd,"NOTICE %s :End of %s rules.",user->nick,Config->ServerName); } |