1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

Initial import

This commit is contained in:
Julien Louis
2006-09-16 20:48:42 +00:00
parent cb95bfc846
commit 0493cb89eb
30 changed files with 4282 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# This script sends "uname -a" output to current channel.
# Just type /uname while chatting on some channel ;)
# by Stalwart <stlwrt doggy gmail.com>
#
# Released under GPL licence.
import weechat
from os import popen
def senduname(server, args):
unameout = popen ('uname -a')
uname = unameout.readline()
weechat.command(uname[:-1])
return 0
weechat.register ('uname', '1.0', '', """Sends "uname -a" output to current channel""")
weechat.add_command_handler ('uname', 'senduname')