[geany/infrastructure] d35d03: Don't put the IRC userlist into the webserver's docroot anymore

Enrico Tröger git-noreply at xxxxx
Wed Nov 13 20:22:22 UTC 2013


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 13 Nov 2013 20:22:22 UTC
Commit:      d35d0374ffc7ef5ea40641484096b62fb7651129
             https://github.com/geany/infrastructure/commit/d35d0374ffc7ef5ea40641484096b62fb7651129

Log Message:
-----------
Don't put the IRC userlist into the webserver's docroot anymore

This was necessary long time ago but today we access it locally and so we can
use a non-public location.


Modified Paths:
--------------
    ircbot-plugins/Geany/plugin.py

Modified: ircbot-plugins/Geany/plugin.py
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -44,6 +44,7 @@
 import supybot.conf as conf
 
 
+IRC_USERLIST_FILEPATH = '/var/tmp/irc_userlist'
 GOODIES = {
     'coffee': 'A nice sexy waitress brings %s a big cup of coffee!',
     'coke': 'A nice sexy waitress brings %s a cool bottle of coke!',
@@ -103,7 +104,7 @@ def filter_services(value):
             # filter myself and ChanServ
             users = filter(filter_services, channel_users)
 
-            f = open('/srv/www/irc.geany.org/irc_userlist', 'w')
+            f = open(IRC_USERLIST_FILEPATH, 'w')
             f.write('\n'.join(users))
             f.close()
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list