From 1f1769a3332d003f47460478d1d6061d4802fa64 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 27 Oct 2013 18:59:49 +0000 Subject: - 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 --- modules/m_svsmode.c | 1 + modules/m_webirc.c | 1 + modules/m_whois.c | 5 +++++ 3 files changed, 7 insertions(+) (limited to 'modules') 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) -- cgit