Re: PyTeamTalk
I don't know why you have check as a parameter. Right now it doesn't do anything useful.
As a general rule of thumb, reserve arguments for data that is apt to change.
No need for:
g = server.get_user(u["userid"])
You can eliminate a step by just calling:
server.user_message(u["userid"], nickname + " writes to you:\n" + content[1:])
Note that I also changed "content[1]" to "content[1:]". Without this, if there was an "@" in your message for some reason, it along with everything else would be dropped. Look into Python slices to understand why.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector