diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-08-25 23:59:22 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-08-25 23:59:22 +0200 |
commit | acd8cf7e1309da8946ca57847e665e3edf970249 (patch) | |
tree | 801b01ff8bbc525d1d2b7097137d6f466146f542 | |
parent | b84cc861de601973febbaebf803399798b382ad0 (diff) |
weechat: Set server buffer type to "server"
Useful for autosort rules
-rw-r--r-- | weechat/tomsg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 0f72159..e5577bc 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -776,6 +776,8 @@ static int connect_cb(const void *_p,void *hostname,int status,int _g,int fd,con conn->linebuf=malloc(conn->linebuf_sz); assert(conn->linebuf); + weechat_buffer_set(conn->buffer,"localvar_set_type","server"); + weechat_printf(conn->buffer,"Connected!"); weechat_hashtable_set(conntable,&fd,conn); |