1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 01:33:13 +02:00

- #0002095 removing /helpop broadcasting

This commit is contained in:
stskeeps
2007-04-26 12:55:18 +00:00
parent 22c17e5009
commit 017c87cd4d
5 changed files with 13 additions and 97 deletions
+1 -1
View File
@@ -1631,4 +1631,4 @@ MOTDs
Devel.WolfSage.org[192.168.2.97] instead of @1 ] :Server
Devel.WolfSage.org[192.168.2.97] closed the connection. This would
probably have caused netsplits to go unnoticed.
- #0002095 removing /helpop broadcasting
+3 -15
View File
@@ -301,9 +301,7 @@ because otherwise you will not understand concepts such as 'cloaking', 'snomasks
the help block in the configuration file. Additionally, a help.conf is included which contains some basic help for
all commands.<br>
For example <i>/helpop chmodes</i> gives you a overview of all channel modes UnrealIRCd has.<br>
Remember that if you are an ircop (helpop) you will have to prefix the keyword with a '?' character,
so <i>/helpop</i> becomes <i>/helpop ?</i> and
<i>/helpop chmodes</i> becomes <i>/helpop ?chmodes</i> etc..</p></div>
</p></div>
<p><font size="+2"><b>3.6 - Oper access levels</b></font><a name="feature_operaccesslevels"></a></p><div class="desc">
<p>There are several oper levels in UnrealIRCd and you can add additional rights (like to use /gline) to
@@ -1019,7 +1017,7 @@ listen *:6601 {
<tr>
<td><div align="center">h</div></td>
<td><div align="center">helpop</div></td>
<td>Oper receives umode +h (helpop)</td>
<td>Oper is marked as "availiable for help" when he/she is not away</td>
</tr>
<tr>
<td><div align="center">w</div></td>
@@ -2810,7 +2808,7 @@ AU). Requests to these servers are sent in parallel, fastest reply wins.</p>
</table>
<p></p></div>
<p><font size="+2"><b>7 &#8211; User & Oper Commands Table<a name="useropercommands" id="useropercommands"></a></b></font></p><div class="desc">
<p>NOTE: the /helpop documentation is more up to date, use <i>/helpop command</i> (or <i>/helpop ?command</i> if you are oper)
<p>NOTE: the /helpop documentation is more up to date, use <i>/helpop command</i>
to get more information on a command.</p>
<table width="90%" border="1">
@@ -2950,16 +2948,6 @@ to get more information on a command.</p>
to an IRC server.<br></td>
<td>All</td>
</tr>
<tr>
<td height="39">helpop ?&lt;topic&gt; or !&lt;topic&gt;<br></td>
<td>HelpOp is a new system of getting IRC Server help. You type either /HELPOP
? &lt;help system topic&gt; or /HELPOP ! &lt;question&gt; The "?"
in /HELPOP means query the help system and if you get no response you can
choose '!' to send it to the Help Operators online. Using neither ? nor !
will mean the command will be first queried within the help system and if
no match if found , it will be forwarded to the help operators</td>
<td>All</td>
</tr>
<tr>
<td height="39">list &lt;search string&gt;</td>
<td>
+1 -1
View File
@@ -264,7 +264,7 @@ help Oflags {
" r (can_rehash) Access to /REHASH server";
" R (can_restart) Access to /RESTART server";
" D (can_die) Access to /DIE server";
" h (helpop) Oper receives umode +h (helpop)";
" h (helpop) Oper is marked as availiable for help is not away";
" g (can_globops) Oper can send /GLOBOPS";
" w (can_wallops) Oper can send /WALLOPS";
" n (can_localnotice) Oper can send Local Server Notices";
+7 -79
View File
@@ -99,88 +99,16 @@ CMD_FUNC(m_help)
message = parc > 1 ? parv[1] : NULL;
/* Drags along from wallops code... I'm not sure what it's supposed to do,
at least it won't do that gracefully, whatever it is it does - but
checking whether or not it's a person _is_ good... -Donwulff */
if (!MyConnect(sptr))
return 0;
if (IsServer(sptr) || IsHelpOp(sptr))
{
if (BadPtr(message)) {
if (MyClient(sptr)) {
parse_help(sptr, parv[0], NULL);
sendto_one(sptr,
":%s NOTICE %s :*** NOTE: As a helpop you have to prefix your text with ? to query the help system, like: /helpop ?usercmds",
me.name, sptr->name);
}
return 0;
}
if (message[0] == '?')
{
parse_help(sptr, parv[0], message + 1);
return 0;
}
if (!myncmp(message, "IGNORE ", 7))
{
tmpl = make_link();
DupString(tmpl->value.cp, message + 7);
tmpl->next = helpign;
helpign = tmpl;
return 0;
}
if (message[0] == '!')
message++;
if (BadPtr(message))
return 0;
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
parv[0], MSG_HELP, TOK_HELP, "%s", message);
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s (HelpOp): %s",
parv[0], message);
if (BadPtr(message)) {
parse_help(sptr, parv[0], NULL);
return 0;
}
else if (MyConnect(sptr))
{
/* New syntax: ?... never goes out, !... always does. */
if (BadPtr(message)) {
parse_help(sptr, parv[0], NULL);
else {
if (parse_help(sptr, parv[0], message))
return 0;
}
else if (message[0] == '?') {
parse_help(sptr, parv[0], message+1);
return 0;
}
else if (message[0] == '!') {
message++;
}
else {
if (parse_help(sptr, parv[0], message))
return 0;
}
if (BadPtr(message))
return 0;
s = make_nick_user_host(cptr->name, cptr->user->username,
cptr->user->realhost);
for (tmpl = helpign; tmpl; tmpl = tmpl->next)
if (match(tmpl->value.cp, s) == 0)
{
sendto_one(sptr, rpl_str(RPL_HELPIGN), me.name,
parv[0]);
return 0;
}
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
parv[0], MSG_HELP, TOK_HELP, "%s", message);
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s (Local): %s",
parv[0], message);
sendto_one(sptr, rpl_str(RPL_HELPFWD), me.name, parv[0]);
}
else
{
if (BadPtr(message))
return 0;
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
parv[0], MSG_HELP, TOK_HELP, "%s", message);
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s: %s", parv[0],
message);
}
return 0;
}
+1 -1
View File
@@ -705,7 +705,7 @@ DLLFUNC int m_tkl_line(aClient *cptr, aClient *sptr, int parc, char *parv[], ch
int spamfilter_usage(aClient *sptr)
{
sendnotice(sptr, "Use: /spamfilter [add|del|remove|+|-] [type] [action] [tkltime] [tklreason] [regex]");
sendnotice(sptr, "See '/helpop ?spamfilter' for more information.");
sendnotice(sptr, "See '/helpop spamfilter' for more information.");
return 0;
}