diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:57:20 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:57:20 +0000 |
| commit | 6c55e0a529c7f1216ff6f63a4fc77ea06a2a3a38 (patch) | |
| tree | 91b0841faf23087ebe0c74dd4269d181a383f1e7 /src/modules/os_info.c | |
| parent | 069409cd99cf78ab8bf87a1fe69a833576414fd3 (diff) | |
Insane commit of doom: s/ \t/g
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/os_info.c')
| -rw-r--r-- | src/modules/os_info.c | 624 |
1 files changed, 312 insertions, 312 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c index 2d69267ae..6a123ae2d 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -27,16 +27,16 @@ /* Multi-language stuff */ #define LANG_NUM_STRINGS 10 -#define OINFO_SYNTAX 0 +#define OINFO_SYNTAX 0 #define OINFO_ADD_SUCCESS 1 #define OINFO_DEL_SUCCESS 2 -#define OCINFO_SYNTAX 3 +#define OCINFO_SYNTAX 3 #define OCINFO_ADD_SUCCESS 4 #define OCINFO_DEL_SUCCESS 5 -#define OINFO_HELP 6 -#define OCINFO_HELP 7 -#define OINFO_HELP_CMD 8 -#define OCINFO_HELP_CMD 9 +#define OINFO_HELP 6 +#define OCINFO_HELP 7 +#define OINFO_HELP_CMD 8 +#define OCINFO_HELP_CMD 9 /*************************************************************************/ @@ -130,9 +130,9 @@ class OSInfo : public Module "This will show up when any oper /cs info's the channel.\n" "and can be used for 'tagging' channels etc....", /* OINFO_HELP_CMD */ - " OINFO Add / Del an OperInfo line to a nick", + " OINFO Add / Del an OperInfo line to a nick", /* OCINFO_HELP_CMD */ - " OINFO Add / Del an OperInfo line to a channel" + " OINFO Add / Del an OperInfo line to a channel" }; const char* langtable_es[] = { @@ -159,9 +159,9 @@ class OSInfo : public Module "Esto se mostrara cuando cualquier operador haga /cs info canal\n" "y puede ser usado para 'marcado' de canales, etc....", /* OINFO_HELP_CMD */ - " OINFO Agrega / Elimina una linea OperInfo al nick", + " OINFO Agrega / Elimina una linea OperInfo al nick", /* OCINFO_HELP_CMD */ - " OINFO Agrega / Elimina una linea OperInfo al canal" + " OINFO Agrega / Elimina una linea OperInfo al canal" }; const char* langtable_nl[] = { @@ -190,9 +190,9 @@ class OSInfo : public Module "een oper /cs info kanaal doet voor dit kanaal, en kan worden\n" "gebruikt om een kanaal te 'markeren' etc...", /* OINFO_HELP_CMD */ - " OINFO Voeg een OperInfo regel toe aan een nick of verwijder deze", + " OINFO Voeg een OperInfo regel toe aan een nick of verwijder deze", /* OCINFO_HELP_CMD */ - " OINFO Voeg een OperInfo regel toe aan een kanaal of verwijder deze" + " OINFO Voeg een OperInfo regel toe aan een kanaal of verwijder deze" }; const char* langtable_de[] = { @@ -219,9 +219,9 @@ class OSInfo : public Module "Channel.Sie wird angezeigt wenn ein Oper mit /cs info sich\n" "ьber den Channel informiert.", /* OINFO_HELP_CMD */ - " OINFO Addiert / Lцscht eine OperInfo Linie zu / von einen Nicknamen", + " OINFO Addiert / Lцscht eine OperInfo Linie zu / von einen Nicknamen", /* OCINFO_HELP_CMD */ - " OINFO Addiert / Lцscht eine OperInfo Linie zu / von einen Channel" + " OINFO Addiert / Lцscht eine OperInfo Linie zu / von einen Channel" }; const char* langtable_pt[] = { @@ -248,9 +248,9 @@ class OSInfo : public Module "Isto serб mostrado quando qualquer Operador usar /cs info canal\n" "e pode ser usado para 'etiquetar' canais etc...", /* OINFO_HELP_CMD */ - " OINFO Adiciona ou Apaga a linha OperInfo para um nick", + " OINFO Adiciona ou Apaga a linha OperInfo para um nick", /* OCINFO_HELP_CMD */ - " OINFO Adiciona ou Apaga a linha OperInfo para um canal" + " OINFO Adiciona ou Apaga a linha OperInfo para um canal" }; const char* langtable_ru[] = { @@ -277,9 +277,9 @@ class OSInfo : public Module "которая будет показана любому оператору, запрашивающему INFO канала.\n" "Может быть использована для 'пометки' каналов и т. д...", /* OINFO_HELP_CMD */ - " OINFO Добавляет/Удаляет опер-инфо для ника", + " OINFO Добавляет/Удаляет опер-инфо для ника", /* OCINFO_HELP_CMD */ - " OINFO Добавляет/Удаляет опер-инфо для канала" + " OINFO Добавляет/Удаляет опер-инфо для канала" }; const char* langtable_it[] = { @@ -306,9 +306,9 @@ class OSInfo : public Module "Queste vengono mostrate quando un oper esegue il comando /cs info <canale>\n" "e possono essere utilizzate per 'marchiare' i canali ecc...", /* OINFO_HELP_CMD */ - " OINFO Aggiunge/Rimuove una linea OperInfo ad/da un nick", + " OINFO Aggiunge/Rimuove una linea OperInfo ad/da un nick", /* OCINFO_HELP_CMD */ - " OINFO Aggiunge/Rimuove una linea OperInfo ad/da un canale" + " OINFO Aggiunge/Rimuove una linea OperInfo ad/da un canale" }; this->InsertLanguage(LANG_EN_US, LANG_NUM_STRINGS, langtable_en_us); @@ -350,62 +350,62 @@ class OSInfo : public Module **/ int myAddNickInfo(User * u) { - char *text = NULL; - char *cmd = NULL; - char *nick = NULL; - char *info = NULL; - NickAlias *na = NULL; - - /* Get the last buffer anope recived */ - text = moduleGetLastBuffer(); - if (text) { - cmd = myStrGetToken(text, ' ', 0); - nick = myStrGetToken(text, ' ', 1); - info = myStrGetTokenRemainder(text, ' ', 2); - if (cmd && nick) { - if (strcasecmp(cmd, "ADD") == 0) { - /* Syntax error, again! */ - if (info) { - /* ok we've found the user */ - if ((na = findnick(nick))) { - /* Add the module data to the user */ - moduleAddData(&na->nc->moduleData, "info", info); - moduleNoticeLang(s_NickServ, u, - OINFO_ADD_SUCCESS, nick); - /* NickCore not found! */ - } else { - notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, - nick); - } - free(info); - } - } else if (strcasecmp(cmd, "DEL") == 0) { - /* ok we've found the user */ - if ((na = findnick(nick))) { - moduleDelData(&na->nc->moduleData, "info"); - moduleNoticeLang(s_NickServ, u, - OINFO_DEL_SUCCESS, nick); - /* NickCore not found! */ - } else { - notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, - nick); - } - /* another syntax error! */ - } else { - moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); - } - free(cmd); - free(nick); - /* Syntax error */ - } else if (cmd) { - moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); - free(cmd); - /* Syntax error */ - } else { - moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); - } - } - return MOD_CONT; + char *text = NULL; + char *cmd = NULL; + char *nick = NULL; + char *info = NULL; + NickAlias *na = NULL; + + /* Get the last buffer anope recived */ + text = moduleGetLastBuffer(); + if (text) { + cmd = myStrGetToken(text, ' ', 0); + nick = myStrGetToken(text, ' ', 1); + info = myStrGetTokenRemainder(text, ' ', 2); + if (cmd && nick) { + if (strcasecmp(cmd, "ADD") == 0) { + /* Syntax error, again! */ + if (info) { + /* ok we've found the user */ + if ((na = findnick(nick))) { + /* Add the module data to the user */ + moduleAddData(&na->nc->moduleData, "info", info); + moduleNoticeLang(s_NickServ, u, + OINFO_ADD_SUCCESS, nick); + /* NickCore not found! */ + } else { + notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, + nick); + } + free(info); + } + } else if (strcasecmp(cmd, "DEL") == 0) { + /* ok we've found the user */ + if ((na = findnick(nick))) { + moduleDelData(&na->nc->moduleData, "info"); + moduleNoticeLang(s_NickServ, u, + OINFO_DEL_SUCCESS, nick); + /* NickCore not found! */ + } else { + notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, + nick); + } + /* another syntax error! */ + } else { + moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); + } + free(cmd); + free(nick); + /* Syntax error */ + } else if (cmd) { + moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); + free(cmd); + /* Syntax error */ + } else { + moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX); + } + } + return MOD_CONT; } /** @@ -420,60 +420,60 @@ int myAddNickInfo(User * u) **/ int myAddChanInfo(User * u) { - char *text = NULL; - char *cmd = NULL; - char *chan = NULL; - char *info = NULL; - ChannelInfo *ci = NULL; - - /* Get the last buffer anope recived */ - text = moduleGetLastBuffer(); - if (text) { - cmd = myStrGetToken(text, ' ', 0); - chan = myStrGetToken(text, ' ', 1); - info = myStrGetTokenRemainder(text, ' ', 2); - if (cmd && chan) { - if (strcasecmp(cmd, "ADD") == 0) { - if (info) { - if ((ci = cs_findchan(chan))) { - /* Add the module data to the channel */ - moduleAddData(&ci->moduleData, "info", info); - moduleNoticeLang(s_ChanServ, u, - OCINFO_ADD_SUCCESS, chan); - /* ChanInfo */ - } else { - notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, - chan); - } - free(info); - } - } else if (strcasecmp(cmd, "DEL") == 0) { - if ((ci = cs_findchan(chan))) { - /* Del the module data from the channel */ - moduleDelData(&ci->moduleData, "info"); - moduleNoticeLang(s_ChanServ, u, - OCINFO_DEL_SUCCESS, chan); - /* ChanInfo */ - } else { - notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, - chan); - } - /* another syntax error! */ - } else { - moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); - } - free(cmd); - free(chan); - /* Syntax error */ - } else if (cmd) { - moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); - free(cmd); - /* Syntax error */ - } else { - moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); - } - } - return MOD_CONT; + char *text = NULL; + char *cmd = NULL; + char *chan = NULL; + char *info = NULL; + ChannelInfo *ci = NULL; + + /* Get the last buffer anope recived */ + text = moduleGetLastBuffer(); + if (text) { + cmd = myStrGetToken(text, ' ', 0); + chan = myStrGetToken(text, ' ', 1); + info = myStrGetTokenRemainder(text, ' ', 2); + if (cmd && chan) { + if (strcasecmp(cmd, "ADD") == 0) { + if (info) { + if ((ci = cs_findchan(chan))) { + /* Add the module data to the channel */ + moduleAddData(&ci->moduleData, "info", info); + moduleNoticeLang(s_ChanServ, u, + OCINFO_ADD_SUCCESS, chan); + /* ChanInfo */ + } else { + notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, + chan); + } + free(info); + } + } else if (strcasecmp(cmd, "DEL") == 0) { + if ((ci = cs_findchan(chan))) { + /* Del the module data from the channel */ + moduleDelData(&ci->moduleData, "info"); + moduleNoticeLang(s_ChanServ, u, + OCINFO_DEL_SUCCESS, chan); + /* ChanInfo */ + } else { + notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, + chan); + } + /* another syntax error! */ + } else { + moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); + } + free(cmd); + free(chan); + /* Syntax error */ + } else if (cmd) { + moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); + free(cmd); + /* Syntax error */ + } else { + moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX); + } + } + return MOD_CONT; } /*************************************************************************/ @@ -485,34 +485,34 @@ int myAddChanInfo(User * u) **/ int myNickInfo(User * u) { - char *text = NULL; - char *nick = NULL; + char *text = NULL; + char *nick = NULL; char *info = NULL; - NickAlias *na = NULL; - - /* Only show our goodies to opers */ - if (is_oper(u)) { - /* Get the last buffer anope recived */ - text = moduleGetLastBuffer(); - if (text) { - nick = myStrGetToken(text, ' ', 0); - if (nick) { - /* ok we've found the user */ - if ((na = findnick(nick))) { - /* If we have any info on this user */ - if ((info = moduleGetData(&na->nc->moduleData, "info"))) { - notice_user(s_NickServ, u, " OperInfo: %s", info); + NickAlias *na = NULL; + + /* Only show our goodies to opers */ + if (is_oper(u)) { + /* Get the last buffer anope recived */ + text = moduleGetLastBuffer(); + if (text) { + nick = myStrGetToken(text, ' ', 0); + if (nick) { + /* ok we've found the user */ + if ((na = findnick(nick))) { + /* If we have any info on this user */ + if ((info = moduleGetData(&na->nc->moduleData, "info"))) { + notice_user(s_NickServ, u, " OperInfo: %s", info); free(info); - } - /* NickCore not found! */ - } else { - /* we dont care! */ - } - free(nick); - } - } - } - return MOD_CONT; + } + /* NickCore not found! */ + } else { + /* we dont care! */ + } + free(nick); + } + } + } + return MOD_CONT; } /** @@ -522,30 +522,30 @@ int myNickInfo(User * u) **/ int myChanInfo(User * u) { - char *text = NULL; - char *chan = NULL; + char *text = NULL; + char *chan = NULL; char *info = NULL; - ChannelInfo *ci = NULL; - - /* Only show our goodies to opers */ - if (is_oper(u)) { - /* Get the last buffer anope recived */ - text = moduleGetLastBuffer(); - if (text) { - chan = myStrGetToken(text, ' ', 0); - if (chan) { - if ((ci = cs_findchan(chan))) { - /* If we have any info on this channel */ - if ((info = moduleGetData(&ci->moduleData, "info"))) { - notice_user(s_ChanServ, u, " OperInfo: %s", info); + ChannelInfo *ci = NULL; + + /* Only show our goodies to opers */ + if (is_oper(u)) { + /* Get the last buffer anope recived */ + text = moduleGetLastBuffer(); + if (text) { + chan = myStrGetToken(text, ' ', 0); + if (chan) { + if ((ci = cs_findchan(chan))) { + /* If we have any info on this channel */ + if ((info = moduleGetData(&ci->moduleData, "info"))) { + notice_user(s_ChanServ, u, " OperInfo: %s", info); free(info); - } - } - free(chan); - } - } - } - return MOD_CONT; + } + } + free(chan); + } + } + } + return MOD_CONT; } /*************************************************************************/ @@ -556,53 +556,53 @@ int myChanInfo(User * u) **/ int mLoadData(void) { - int ret = 0; - FILE *in; - - char *type = NULL; - char *name = NULL; - char *info = NULL; - int len = 0; - - ChannelInfo *ci = NULL; - NickAlias *na = NULL; - - /* will _never_ be this big thanks to the 512 limit of a message */ - char buffer[2000]; - if ((in = fopen(OSInfoDBName, "r")) == NULL) { - alog("os_info: WARNING: can not open the database file! (it might not exist, this is not fatal)"); - ret = 1; - } else { - while (fgets(buffer, 1500, in)) { - type = myStrGetToken(buffer, ' ', 0); - name = myStrGetToken(buffer, ' ', 1); - info = myStrGetTokenRemainder(buffer, ' ', 2); - if (type) { - if (name) { - if (info) { - len = strlen(info); - /* Take the \n from the end of the line */ - info[len - 1] = '\0'; - if (stricmp(type, "C") == 0) { - if ((ci = cs_findchan(name))) { - moduleAddData(&ci->moduleData, "info", - info); - } - } else if (stricmp(type, "N") == 0) { - if ((na = findnick(name))) { - moduleAddData(&na->nc->moduleData, "info", - info); - } - } - free(info); - } - free(name); - } - free(type); - } - } - } - return ret; + int ret = 0; + FILE *in; + + char *type = NULL; + char *name = NULL; + char *info = NULL; + int len = 0; + + ChannelInfo *ci = NULL; + NickAlias *na = NULL; + + /* will _never_ be this big thanks to the 512 limit of a message */ + char buffer[2000]; + if ((in = fopen(OSInfoDBName, "r")) == NULL) { + alog("os_info: WARNING: can not open the database file! (it might not exist, this is not fatal)"); + ret = 1; + } else { + while (fgets(buffer, 1500, in)) { + type = myStrGetToken(buffer, ' ', 0); + name = myStrGetToken(buffer, ' ', 1); + info = myStrGetTokenRemainder(buffer, ' ', 2); + if (type) { + if (name) { + if (info) { + len = strlen(info); + /* Take the \n from the end of the line */ + info[len - 1] = '\0'; + if (stricmp(type, "C") == 0) { + if ((ci = cs_findchan(name))) { + moduleAddData(&ci->moduleData, "info", + info); + } + } else if (stricmp(type, "N") == 0) { + if ((na = findnick(name))) { + moduleAddData(&na->nc->moduleData, "info", + info); + } + } + free(info); + } + free(name); + } + free(type); + } + } + } + return ret; } /** @@ -614,49 +614,49 @@ int mLoadData(void) **/ int mSaveData(int argc, char **argv) { - ChannelInfo *ci = NULL; - NickCore *nc = NULL; - int i = 0; - int ret = 0; - FILE *out; - char *info = NULL; - - if (argc >= 1) { - if (!stricmp(argv[0], EVENT_START)) { - if ((out = fopen(OSInfoDBName, "w")) == NULL) { - alog("os_info: ERROR: can not open the database file!"); - ircdproto->SendGlobops(s_OperServ, - "os_info: ERROR: can not open the database file!"); - ret = 1; - } else { - for (i = 0; i < 1024; i++) { - for (nc = nclists[i]; nc; nc = nc->next) { - /* If we have any info on this user */ - if ((info = moduleGetData(&nc->moduleData, "info"))) { - fprintf(out, "N %s %s\n", nc->display, info); + ChannelInfo *ci = NULL; + NickCore *nc = NULL; + int i = 0; + int ret = 0; + FILE *out; + char *info = NULL; + + if (argc >= 1) { + if (!stricmp(argv[0], EVENT_START)) { + if ((out = fopen(OSInfoDBName, "w")) == NULL) { + alog("os_info: ERROR: can not open the database file!"); + ircdproto->SendGlobops(s_OperServ, + "os_info: ERROR: can not open the database file!"); + ret = 1; + } else { + for (i = 0; i < 1024; i++) { + for (nc = nclists[i]; nc; nc = nc->next) { + /* If we have any info on this user */ + if ((info = moduleGetData(&nc->moduleData, "info"))) { + fprintf(out, "N %s %s\n", nc->display, info); free(info); - } - } - } + } + } + } - for (i = 0; i < 256; i++) { - for (ci = chanlists[i]; ci; ci = ci->next) { - /* If we have any info on this channel */ - if ((info = moduleGetData(&ci->moduleData, "info"))) { - fprintf(out, "C %s %s\n", ci->name, info); + for (i = 0; i < 256; i++) { + for (ci = chanlists[i]; ci; ci = ci->next) { + /* If we have any info on this channel */ + if ((info = moduleGetData(&ci->moduleData, "info"))) { + fprintf(out, "C %s %s\n", ci->name, info); free(info); - } - } - } - fclose(out); - } - } else { - ret = 0; - } - } - - return ret; + } + } + } + fclose(out); + } + } else { + ret = 0; + } + } + + return ret; } /** @@ -676,28 +676,28 @@ int mBackupData(int argc, char **argv) **/ int mLoadConfig(void) { - char *tmp = NULL; + char *tmp = NULL; - Directive directivas[] = { - {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}, - }; + Directive directivas[] = { + {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}, + }; - Directive *d = &directivas[0]; - moduleGetConfigDirective(d); + Directive *d = &directivas[0]; + moduleGetConfigDirective(d); - if (OSInfoDBName) - free(OSInfoDBName); + if (OSInfoDBName) + free(OSInfoDBName); - if (tmp) { - OSInfoDBName = tmp; - } else { - OSInfoDBName = sstrdup(DEFAULT_DB_NAME); - alog("os_info: OSInfoDBName is not defined in Services configuration file, using default %s", OSInfoDBName); - } + if (tmp) { + OSInfoDBName = tmp; + } else { + OSInfoDBName = sstrdup(DEFAULT_DB_NAME); + alog("os_info: OSInfoDBName is not defined in Services configuration file, using default %s", OSInfoDBName); + } - alog("os_info: Directive OSInfoDBName loaded (%s)...", OSInfoDBName); + alog("os_info: Directive OSInfoDBName loaded (%s)...", OSInfoDBName); - return 0; + return 0; } /** @@ -706,58 +706,58 @@ int mLoadConfig(void) **/ int mEventReload(int argc, char **argv) { - int ret = 0; - if (argc >= 1) { - if (!stricmp(argv[0], EVENT_START)) { - alog("os_info: Reloading configuration directives..."); - ret = mLoadConfig(); - } else { - /* Nothing for now */ - } - } - - if (ret) - alog("os_info.c: ERROR: An error has occured while reloading the configuration file"); - - return MOD_CONT; + int ret = 0; + if (argc >= 1) { + if (!stricmp(argv[0], EVENT_START)) { + alog("os_info: Reloading configuration directives..."); + ret = mLoadConfig(); + } else { + /* Nothing for now */ + } + } + + if (ret) + alog("os_info.c: ERROR: An error has occured while reloading the configuration file"); + + return MOD_CONT; } /*************************************************************************/ int mNickHelp(User * u) { - if (is_oper(u)) { - moduleNoticeLang(s_NickServ, u, OINFO_HELP); - } else { - notice_lang(s_NickServ, u, NO_HELP_AVAILABLE, "OINFO"); - } - return MOD_CONT; + if (is_oper(u)) { + moduleNoticeLang(s_NickServ, u, OINFO_HELP); + } else { + notice_lang(s_NickServ, u, NO_HELP_AVAILABLE, "OINFO"); + } + return MOD_CONT; } int mChanHelp(User * u) { - if (is_oper(u)) { - moduleNoticeLang(s_ChanServ, u, OCINFO_HELP); - } else { - notice_lang(s_ChanServ, u, NO_HELP_AVAILABLE, "OINFO"); - } - return MOD_CONT; + if (is_oper(u)) { + moduleNoticeLang(s_ChanServ, u, OCINFO_HELP); + } else { + notice_lang(s_ChanServ, u, NO_HELP_AVAILABLE, "OINFO"); + } + return MOD_CONT; } /* This help will be added to the main NickServ list */ void mMainNickHelp(User * u) { - if (is_oper(u)) { - moduleNoticeLang(s_NickServ, u, OINFO_HELP_CMD); - } + if (is_oper(u)) { + moduleNoticeLang(s_NickServ, u, OINFO_HELP_CMD); + } } /* This help will be added to the main NickServ list */ void mMainChanHelp(User * u) { - if (is_oper(u)) { - moduleNoticeLang(s_ChanServ, u, OCINFO_HELP_CMD); - } + if (is_oper(u)) { + moduleNoticeLang(s_ChanServ, u, OCINFO_HELP_CMD); + } } /*************************************************************************/ |
