From 29f8b71c828f1c1d423e1f9f032db3c574eb499a Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Fri, 25 Apr 2014 13:41:13 +0300 Subject: Remove old "toast" command --- plugin.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'plugin.py') diff --git a/plugin.py b/plugin.py index 74f0e0a..dc15d2c 100644 --- a/plugin.py +++ b/plugin.py @@ -28,7 +28,6 @@ import re import json import time -import random import urllib import urlparse import threading @@ -67,8 +66,6 @@ class Github(callbacks.Plugin): def __init__(self, irc): self.__parent = super(Github, self) self.__parent.__init__(irc) - self.rng = random.Random() # create our rng - self.rng.seed() # automatically seeds with current time server_class = BaseHTTPServer.HTTPServer self.httpd = server_class(('', 8093), RequestHandler.GithubHandler) t = threading.Thread(target=self.ServerStart, args=(self.httpd,)) @@ -84,18 +81,6 @@ class Github(callbacks.Plugin): self.__parent.die() reload(RequestHandler) - def toast(self, irc, msg, args, seed, items): - """ [ ...] - - Returns the next random number from the random number generator. - """ - if seed < len(items): - irc.error(' must be less than the number of arguments.') - return - irc.reply('%s %s %s' % (str(seed), str(self.rng.random()), utils.str.commaAndify(items))) - - toast = wrap(toast, ['float', many('anything')]) - Class = Github -- cgit v1.2.3