Commit efbb9d62 authored by stettberger's avatar stettberger

* Added /chaninfo support for channel info

parent 78d4a912
......@@ -306,7 +306,18 @@ void proc_channels_input(Channel *c, char *buf) {
for ( ch=channels; ch; ch=ch->next)
if(!strcmp(&buf[3], ch->silc->channel_name))
return; /* Already handled */
silc_client_command_call(silc_client->client, silc_client->conn, NULL, "JOIN", lower(&buf[3]), NULL);
silc_client_command_call(silc_client->client, silc_client->conn, NULL,
"JOIN", lower(&buf[3]), NULL);
}
/* ChanInfo */
else if ( !strncmp(&buf[1], "chaninfo", 8) ) {
if ( c->silc->channel_name[0] == 0 ) {
print_out("", "-!?- The master channel is not a real channel");
}
else {
print_out("", "-!?- Name: %s", c->silc->channel_name);
print_out("", "-!?- Topic: %s", c->silc->topic?c->silc->topic:"None");
}
}
/* Leave */
else if (buf[1]=='l' && ( buf[2] == ' ' || strlen(buf)==2)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment