KilllerX commented on a Page, Add/remove names to a list  -  Oct 01, 2013

on $:text:/^!subs\b/Si::{
if ($nick isop #) {
if ($2 == list) || (!$2) {
if ($ini(sub.ini,$chan,0)) {
var %a 1, %z $ini(sub.ini,$chan,0)
msg # # has %z sub(s)
}
else { msg # No subs for $chan $+ .
}
}
if ($2 == add) {
if (!$3) {
msg # please specify whom to add.
}
else { writeini sub.ini $chan $3 subbed
msg # " $+ $3- $+ " has been added to the list
}
}
if ($2 == remove) {
if (!$3) {
msg # please specify whom to remove.
}
else {
if ($readini(sub.ini,$chan,$3)) {
remini sub.ini $chan $3
msg # Removed " $+ $3 $+ " from the list
}
}
}
}
}

I think this should do what you want. I hope.

KilllerX  -  Oct 01, 2013

What your problem what, is you weren't adding a identifier to the names. Which the ini files calls for one. So when you did the ADSGF 1 the 1, I assume would go as an Identifier.

as ini files appear somewhat as

Subs.ini <- file

Channel
NICK=Identifier

So without that identifier it didn't know how to write it.

AnneChoV  -  Oct 01, 2013

Thank you!! I'll keep this in mind :)

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.