All pastes #740814 Raw Edit

Something

public text v1 · immutable
·published 2007-10-18 08:19 UTC
rendered paste body
def cmd_addnotify(self,user, target, params):
        nick = user.split('!', 1)[0]
        #print params
        params = int(params)
        if params in feeds:
            
            if params in feed_notify:
                feed_notify[params] = feed_notify[params] + nick + ';'
            else:
                feed_notify[params] = nick+';'
            self.msg(target,'Added %s to feed id %s notify list.' % (nick,params))
        #url = params
            feednfile = open("feed_notify.cfg", 'w')
            cPickle.dump(feed_notify,feednfile)
            feednfile.close()
        else:
            self.msg(target,'No such feed id')