diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 14:23:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 14:23:49 +0000 |
commit | c76cee874823851fa4e12f94e2ef659b538de203 (patch) | |
tree | 5bac92ed0fc205b7e987acbe0a930ce565dd71fa /src | |
parent | 23101be0f2e1f1853147dfb0078b8aadbca76746 (diff) |
UMode tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3592 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 17 | ||||
-rwxr-xr-x | src/svn-rev.sh | 2 |
2 files changed, 18 insertions, 1 deletions
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)); diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 61c8deda6..24b276076 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3589 +echo 3591 |