modbot/mods/default.py

10 lines
246 B
Python

import utils
def cmd(line, srv):
splitted = line.params[1].split(' ')
command = splitted[0][1:]
if command == "load":
srv.load_mod(splitted[1])
utils.message(srv, line.params[0],
"loaded: " + splitted[1])