From c76cee874823851fa4e12f94e2ef659b538de203 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Mar 2006 14:23:49 +0000 Subject: UMode tweaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3592 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index e99bd814d..fc7ecb06e 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1109,6 +1109,23 @@ class TreeSocket : public InspSocket clientlist[tempnick]->registered = 7; clientlist[tempnick]->signon = age; strlcpy(clientlist[tempnick]->modes, modes.c_str(),53); + for (*v = clientlist[tempnick]->modes; *v; v++) + { + switch (*v) + { + case 'i': + clientlist[tempnick]->modebits |= UM_INVISIBLE; + break; + case 'w': + clientlist[tempnick]->modebits |= UM_WALLOPS; + break; + case 's': + clientlist[tempnick]->modebits |= UM_SERVERNOTICE; + break; + default: + break; + } + } inet_aton(params[6].c_str(),&clientlist[tempnick]->ip4); WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",clientlist[tempnick]->server,clientlist[tempnick]->nick,clientlist[tempnick]->ident,clientlist[tempnick]->host,(char*)inet_ntoa(clientlist[tempnick]->ip4)); -- cgit v1.2.3