# - provide helper functions for scripts to do common things like msg a person or a channel,
# reply, etc.
-import svc
+import _svc
import math
self.target = target #the channel message was in (if public)
def send_target_privmsg(self, source, target, message):
- svc.send_target_privmsg(source, target, "%s "%(message))
+ _svc.send_target_privmsg(source, target, "%s "%(message))
def reply(self, message):
""" Send a private reply to the user using convenience values"""
return 0
def join(self, irc, channel, nick):
- #user = svc.get_user(nick)
+ #user = _svc.get_user(nick)
#print "DEBUG: handler.join()"
return self.plugins.callhandler("join", irc, [channel, nick], [channel, nick])