I have been working for some months on a new python server and now seems to be almost finished , you can download it from git://tiz.ath.cx/pytasserver.git Actually also if it is written in python it will NOT work on windozÔé¼ cause it uses some linux only functions and it requires a mysql database. It has full ChanServless channel management, channel ip-account bans, channel ip-account mutes, ip bans controlled through a separate server and command specific flood limit. I'd like that it gets deployed at least as backup server for now
I think my server is more suitable for backup server, cause it has a special mode that allows users to connect without register and at the same time moderators to register accounts and get moderator flag
Can you fix indentation please? Actually i am mot sure if it happens on my side only but i am getting stuff like mixed tabs and spaces..
Example:
What is supposed to be:
Code:
for s in list(self.clients.keys()): if s.fileno() == fd[0]: newsocket = s iR.append(newsocket)
Shows up as:
Code:
for s in list(self.clients.keys()): if s.fileno() == fd[0]: newsocket = s iR.append(newsocket)
and fails with some variable newsocket referenced before assignment error
Also i was getting crashes in Main.run on: (stuff like getting different random errors every time)
Code:
self.database.query("SELECT name,founder,operators,accountmutes,topic,password,id,ipmutes,accountbans,ipbans FROM channels") res = self.database.store_result()
I tried
Code:
db = mysql.connect("localhost", "root", "passwordpassword", "pytasserver") mysql.query("SELECT name,founder,operators,accountmutes,topic,password,id,ipmutes,accountbans,ipbans FROM channels") ret = mysql.store_result()
which succeeded every time.
I was raging/messing around a while then i noticed
connectionpingthread then calls sd.ping. Unlike the other methods query and store_result where you mess with synchronisation by lock.acquire/release the ping method has none.
After commenting out the start_new_thread call everything magically worked fine.. Is it possible that there is some weird race condition whatever thing going on?
that's just what happens when he: # copies code from me and mixes it with his own code # switches operating systems # switches text editors # codes while drunk # lets the cat help
only one is true, it's because i use both gedit and kate , the first one uses tabs, second one uses spaces your code is just 0.1% actually and it'll be 0.0 soon
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum