예제 #1
0
def succeedLogin(caller,user):
	UserSessionManager[caller]=(user["username"],user["privileges"])
	systemCS.executestring('notice "%s"' % escape("%s has logged in from %s as %s" % (formatCaller(caller), caller[0], user["username"])))
예제 #2
0
	def __str__(self):
		return "\n".join(sorted(['cfg "%s" "%s"' % (escape(key), escape(value)) for key, value in self.items()],key=self.order))