summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-10-27 18:59:49 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-10-27 18:59:49 +0000
commit1f1769a3332d003f47460478d1d6061d4802fa64 (patch)
tree53b0909005888d7f0a62f61f311955716ff05d31 /modules
parente671d82d066063c5c7b02169b5617c58361bf42c (diff)
- Added usermode +W. Users connected via a webirc gateway get this
mode set by servers. - /WHOIS now shows whether a client is connected via a webirc gateway git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2512 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_svsmode.c1
-rw-r--r--modules/m_webirc.c1
-rw-r--r--modules/m_whois.c5
3 files changed, 7 insertions, 0 deletions
diff --git a/modules/m_svsmode.c b/modules/m_svsmode.c
index 851629e..4db45d1 100644
--- a/modules/m_svsmode.c
+++ b/modules/m_svsmode.c
@@ -145,6 +145,7 @@ ms_svsmode(struct Client *client_p, struct Client *source_p,
break;
case 'S': /* Only servers may set +S in a burst */
+ case 'W': /* Only servers may set +W in a burst */
break;
default:
diff --git a/modules/m_webirc.c b/modules/m_webirc.c
index 2aa710a..1fbe4c6 100644
--- a/modules/m_webirc.c
+++ b/modules/m_webirc.c
@@ -149,6 +149,7 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, char *parv
}
}
+ AddUMode(source_p, UMODE_WEBIRC);
sendto_one(source_p, ":%s NOTICE %s :CGI:IRC host/IP set to %s %s", me.name,
source_p->name[0] ? source_p->name : "*", parv[3], parv[4]);
}
diff --git a/modules/m_whois.c b/modules/m_whois.c
index 74149a5..e01901b 100644
--- a/modules/m_whois.c
+++ b/modules/m_whois.c
@@ -129,6 +129,11 @@ whois_person(struct Client *source_p, struct Client *target_p)
RPL_WHOISOPERATOR),
me.name, source_p->name, target_p->name);
+ if (HasUMode(target_p, UMODE_WEBIRC))
+ sendto_one(source_p, form_str(RPL_WHOISTEXT),
+ me.name, source_p->name, target_p->name,
+ "User connected using a webirc gateway");
+
if (target_p->sockhost[0] && strcmp(target_p->sockhost, "0"))
{
if (HasUMode(source_p, UMODE_ADMIN) || source_p == target_p)