Skip to content

Commit abc0ef4

Browse files
author
chaos95
committed
Core: Made hashpw a bit more informative.
Mafia plugin: Fixed an error with !resetstarter output. git-svn-id: http://pygbot.svn.sourceforge.net/svnroot/pygbot/trunk@54 4ffac776-36fa-42b0-9124-184eb47ee2cf
1 parent cb69850 commit abc0ef4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hashpw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
if __name__ == "__main__":
2727
uname = raw_input("Enter username: ")
2828
pwhash = hashlib.sha1(raw_input("Enter pw: ") + 'pygb0t').hexdigest()
29-
ulevel = raw_input("Enter userlevel: ")
29+
ulevel = raw_input("Enter userlevel (User, Mod or Admin): ")
3030

3131
conf = ConfigObj('users.ini')
3232
conf[uname] = {'passhash': pwhash, 'userlevel': ulevel}

pyGBot/Plugins/games/Mafia.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1138,9 +1138,9 @@ def cmd_rules(self, args, channel, user):
11381138
def cmd_resetstarter(self, args, channel, user):
11391139
if user == self.game_starter:
11401140
self.game_starter = None
1141-
self.bot.pubout(channel, user, "Game control is now open to all.")
1141+
self.bot.pubout(channel, "Game control is now open to all.")
11421142
else:
1143-
self.bot.pubout(channel, user, "You are not the game starter.")
1143+
self.reply(channel, user, "You are not the game starter.")
11441144

11451145
def cmd_moderation(self, args, channel, user):
11461146
if self.game_starter and self.game_starter != user:

0 commit comments

Comments
 (0)