Skip to content

Commit

Permalink
[coretasks] Remove unneeded import and fix group errors from previous…
Browse files Browse the repository at this point in the history
… commit
  • Loading branch information
embolalia committed May 31, 2013
1 parent 3faf206 commit 854d511
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions willie/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import threading
import time
import willie
from willie.module import command
from willie.tools import Nick


Expand Down Expand Up @@ -98,12 +97,12 @@ def list_voices(bot, trigger):
bot.say('None')


@willie.module.rule('.*')
@willie.module.rule('(.*)')
@willie.module.event('353')
@willie.module.thread(False)
def handle_names(bot, trigger):
''' Handle NAMES response, happens when joining to channels'''
names = re.split(' ', trigger.group(1))
names = re.split(' ', trigger)
channels = re.search('(#\S*)', bot.raw)
if (channels is None):
return
Expand Down Expand Up @@ -184,7 +183,7 @@ def track_modes(bot, trigger):
def track_nicks(bot, trigger):
'''Track nickname changes and maintain our chanops list accordingly'''
old = trigger.nick
new = Nick(trigger.group(1))
new = Nick(trigger)

# Give debug mssage, and PM the owner, if the bot's own nick changes.
if old == bot.nick:
Expand Down

0 comments on commit 854d511

Please sign in to comment.