Skip to content

Commit

Permalink
[adminchannel] Remove calls to non-existent function calls to service…
Browse files Browse the repository at this point in the history
…s authentication

Close issue sopel-irc#208
  • Loading branch information
embolalia committed Mar 12, 2013
1 parent 57ac47b commit 61ef53a
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions adminchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ def op(willie, trigger):
Command to op users in a room. If no nick is given,
willie will op the nick who sent the command
"""
if not trigger.isop:
return
nick = trigger.group(2)
verify = auth_check(willie, trigger.nick, nick)
if verify:
if trigger.isop:
nick = trigger.group(2)
channel = trigger.sender
if not nick:
nick = trigger.nick
Expand All @@ -41,11 +38,8 @@ def deop(willie, trigger):
Command to deop users in a room. If no nick is given,
willie will deop the nick who sent the command
"""
if not trigger.isop:
return
nick = trigger.group(2)
verify = auth_check(willie, trigger.nick, nick)
if verify:
if trigger.isop:
nick = trigger.group(2)
channel = trigger.sender
if not nick:
nick = trigger.nick
Expand All @@ -59,11 +53,8 @@ def voice(willie, trigger):
Command to voice users in a room. If no nick is given,
willie will voice the nick who sent the command
"""
if not trigger.isop:
return
nick = trigger.group(2)
verify = auth_check(willie, trigger.nick, nick)
if verify:
if trigger.isop:
nick = trigger.group(2)
channel = trigger.sender
if not nick:
nick = trigger.nick
Expand All @@ -77,11 +68,8 @@ def devoice(willie, trigger):
Command to devoice users in a room. If no nick is given,
willie will devoice the nick who sent the command
"""
if not trigger.isop:
return
nick = trigger.group(2)
verify = auth_check(willie, trigger.nick, nick)
if verify:
if trigger.isop:
nick = trigger.group(2)
channel = trigger.sender
if not nick:
nick = trigger.nick
Expand Down

0 comments on commit 61ef53a

Please sign in to comment.