mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
Fixed a bug with isupport, after an upgrade from 0.8.9 prefix very well can be NULL, so check for it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3750 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c79e690e88
commit
4d5200a4e1
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ void modes_type_prefix(IRC_CHANNEL_REC *channel, const char *setby,
|
||||||
/* see if we need to update channel->chanop */
|
/* see if we need to update channel->chanop */
|
||||||
const char *prefix =
|
const char *prefix =
|
||||||
g_hash_table_lookup(channel->server->isupport, "PREFIX");
|
g_hash_table_lookup(channel->server->isupport, "PREFIX");
|
||||||
if (*prefix == '(') {
|
if (prefix != NULL && *prefix == '(') {
|
||||||
prefix++;
|
prefix++;
|
||||||
while (*prefix != ')' && *prefix != '\0') {
|
while (*prefix != ')' && *prefix != '\0') {
|
||||||
if (*prefix == mode) {
|
if (*prefix == mode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue