mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Make schat's showsocks module admin-only
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1260 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+4
-2
@@ -291,7 +291,7 @@ public:
|
||||
}
|
||||
}
|
||||
PutModule("No Such Chat [" + sArgs + "]");
|
||||
} else if (sCom.Equals("showsocks"))
|
||||
} else if (sCom.Equals("showsocks") && m_pUser->IsAdmin())
|
||||
{
|
||||
CTable Table;
|
||||
Table.AddColumn("SockName");
|
||||
@@ -352,7 +352,9 @@ public:
|
||||
PutModule(" list - List current chats.");
|
||||
PutModule(" close <nick> - Close a chat to a nick.");
|
||||
PutModule(" timers - Shows related timers.");
|
||||
PutModule(" showsocks - Shows all socket connections.");
|
||||
if (m_pUser->IsAdmin()) {
|
||||
PutModule(" showsocks - Shows all socket connections.");
|
||||
}
|
||||
} else if (sCom.Equals("timers"))
|
||||
ListTimers();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user