mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Quickfix for IRCbot nudge
Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# Two arguments, channel and message.
|
# Two arguments, channel and message.
|
||||||
# EG: "ircbot_message.py #adminchannel ADMINHELP, people are killing me!"
|
# EG: "ircbot_message.py #adminchannel ADMINHELP, people are killing me!"
|
||||||
|
|
||||||
import sys,pickle,socket
|
import sys,cPickle,socket
|
||||||
|
|
||||||
def pack():
|
def pack():
|
||||||
ip = sys.argv[1]
|
ip = sys.argv[1]
|
||||||
@@ -12,7 +12,7 @@ def pack():
|
|||||||
except:
|
except:
|
||||||
data = "NO DATA SPECIFIED"
|
data = "NO DATA SPECIFIED"
|
||||||
dictionary = {"ip":ip,"data":["PASSWORD"] + data}
|
dictionary = {"ip":ip,"data":["PASSWORD"] + data}
|
||||||
pickled = pickle.dumps(dictionary)
|
pickled = cPickle.dumps(dictionary)
|
||||||
nudge(pickled)
|
nudge(pickled)
|
||||||
def nudge(data):
|
def nudge(data):
|
||||||
HOST = "IRCBOT IP"
|
HOST = "IRCBOT IP"
|
||||||
|
|||||||
Reference in New Issue
Block a user