diff --git a/game/gamesrc/scripts/examples/bodyfunctions.py b/game/gamesrc/scripts/examples/bodyfunctions.py index 1f2b11e3c2..be70621c7f 100644 --- a/game/gamesrc/scripts/examples/bodyfunctions.py +++ b/game/gamesrc/scripts/examples/bodyfunctions.py @@ -32,6 +32,7 @@ class BodyFunctions(Script): This gets called every self.interval seconds. We make a random check here so as to only return 33% of the time. """ + if random.random() < 0.66: # no message this time return diff --git a/src/commands/default/comms.py b/src/commands/default/comms.py index afa90a82f5..68ea142637 100644 --- a/src/commands/default/comms.py +++ b/src/commands/default/comms.py @@ -826,7 +826,7 @@ class CmdIRC2Chan(MuxCommand): if chanmatch: channel = chanmatch.key - ok = irc.delete_connection(irc_network, irc_port, irc_channel, irc_botname) + ok = irc.delete_connection(channel, irc_network, irc_port, irc_channel, irc_botname) if not ok: self.caller.msg("IRC connection/bot could not be removed, does it exist?") else: